Re: [R] Barchart bar lengths not proportionate

2010-01-14 Thread Rex C. Eastbourne
That fixed it! Thanks to all who replied. On Thu, Jan 14, 2010 at 9:13 AM, S Ellison wrote: > I think you should rather look at the origin= parameter in barchart. See > > ?panel.barchart for a discussion of this exact problem: > " origin: the origin for the bars. For grouped displays with 'stac

Re: [R] Barchart bar lengths not proportionate

2010-01-14 Thread S Ellison
I think you should rather look at the origin= parameter in barchart. See ?panel.barchart for a discussion of this exact problem: " origin: the origin for the bars. For grouped displays with 'stack = TRUE', this argument is ignored and the origin set to 0. Otherwise, defaults

Re: [R] Barchart bar lengths not proportionate

2010-01-14 Thread Deepayan Sarkar
On Thu, Jan 14, 2010 at 1:16 AM, Rex C. Eastbourne wrote: > When I use barchart (with default formatting options), I get bars whose > lengths/heights are not proportional to their value. For example: > > http://drop.io/wbagm6s/asset/capture-png > > Many of the values in this chart are 1; however,

Re: [R] Barchart bar lengths not proportionate

2010-01-14 Thread Walmes Zeviani
Rex, I think this problem can be solved using xlim()/ylim() argument. Look at the follwing code: require(lattice) da <- expand.grid(A=c("a","b"), x=1:4) da$y <- c(1,5,6,3,2,0,6,0) barchart(y~x|A, data=da, horizontal=FALSE) barchart(y~x|A, data=da, horizontal=FALSE, ylim=c(0, 1.05*max(

[R] Barchart bar lengths not proportionate

2010-01-14 Thread Rex C. Eastbourne
When I use barchart (with default formatting options), I get bars whose lengths/heights are not proportional to their value. For example: http://drop.io/wbagm6s/asset/capture-png Many of the values in this chart are 1; however, because the blue bars extend to the left of the "0" tick mark, those