[R] Barchart questions

Deepayan Sarkar deepayan at stat.wisc.edu
Thu May 13 21:51:31 CEST 2004


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




More information about the R-help mailing list