Re: [R] Barchart questions

About this list Date view Thread view Subject view Author view Attachment view

From: Deepayan Sarkar (deepayan@stat.wisc.edu)
Date: Fri 14 May 2004 - 05:51:31 EST


Message-id: <200405131451.31987.deepayan@stat.wisc.edu>


On Wednesday 12 May 2004 18:39, Neil Desnoyers wrote:

> I am attempting to produce a bar chart and am having some trouble
> with the panel.barchart command.

That's not really helpful. If you expect us to help, you will have to
tell us exactly what you did and why you are unhappy with the results.

> The definition of X is that it's the
> "proper extent of the bar". Is that the maximum value? Or is it the
> labels for my vertical axis, since the axes seem to be switched for
> this command?

It has nothing to do with the labels. In the usual formulation, the 'x'
values (in the formula y ~ x) are supposed to be heights of the bars.
There should be only one x-value for each y-value (for each panel), so
I'm not sure what you mean by 'maximum'.

> Is there a better/different command I should be using
> for barcharts (i.e. barplot)?

barplot also draws bar charts. It's difficult to say which is more
suitable for your purpose unless we know what you are trying to do.

Deepayan

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:10 EST