Re: [R] Removing inter-bar spaces in barchart

2010-08-26 Thread Jonathan Greenberg
Oops, small typo, should be: barchart_test_heights=sin(c(1:100)) barchart_test_bins=c(c(1:50),c(1:50)) groups=c(rep(1,50),rep(2,50)) # Wish below didn't have spaces! barchart(barchart_test_bins~barchart_test_heights,groups=groups) On Wed, Aug 25, 2010 at 4:46 PM, Jonathan Greenberg

Re: [R] Removing inter-bar spaces in barchart

2010-08-26 Thread Jonathan Greenberg
I apologize, let me add some data to play with: barchart_test_heights=sin(c(1:100)) barchart_test_bins=c(1:100) groups=c(rep(1,50),rep(2,50)) I have pre-calculated histogram data and the bins they belong to. I would like to plot the two histograms superimposed on one-another, having group 1

Re: [R] Removing inter-bar spaces in barchart

2010-08-26 Thread Deepayan Sarkar
On Thu, Aug 26, 2010 at 5:22 AM, Jonathan Greenberg greenb...@ucdavis.edu wrote: Oops, small typo, should be: barchart_test_heights=sin(c(1:100)) barchart_test_bins=c(c(1:50),c(1:50)) groups=c(rep(1,50),rep(2,50)) # Wish below didn't have spaces!

Re: [R] Removing inter-bar spaces in barchart

2010-08-26 Thread Jim Lemon
On 08/26/2010 06:36 AM, Dennis Murphy wrote: ... It looks like he's using barchart() in lattice, which does have a box.ratio argument. That's why I didn't suggest using barp with width=0.5 Jim __ R-help@r-project.org mailing list

[R] Removing inter-bar spaces in barchart

2010-08-25 Thread Jonathan Greenberg
Rhelpers: I'm trying to make a barchart of a 2-group dataset (barchart(x~y,data=data,groups=z,horizontal=FALSE)). My problem is that I can't, for the life of me, seem to get rid of the inter-bar space -- box.ratio set to 1 doesn't do much. Any ideas? I'd ideally want zero space between the

Re: [R] Removing inter-bar spaces in barchart

2010-08-25 Thread Greg Snow
- project.org] On Behalf Of Jonathan Greenberg Sent: Tuesday, August 24, 2010 8:21 PM To: r-help Subject: [R] Removing inter-bar spaces in barchart Rhelpers: I'm trying to make a barchart of a 2-group dataset (barchart(x~y,data=data,groups=z,horizontal=FALSE)). My problem is that I can't

Re: [R] Removing inter-bar spaces in barchart

2010-08-25 Thread Dennis Murphy
inter-bar spaces in barchart Rhelpers: I'm trying to make a barchart of a 2-group dataset (barchart(x~y,data=data,groups=z,horizontal=FALSE)). My problem is that I can't, for the life of me, seem to get rid of the inter-bar space -- box.ratio set to 1 doesn't do much. Any ideas

Re: [R] Removing inter-bar spaces in barchart

2010-08-25 Thread David Winsemius
On Aug 24, 2010, at 10:20 PM, Jonathan Greenberg wrote: Rhelpers: I'm trying to make a barchart of a 2-group dataset (barchart(x~y,data=data,groups=z,horizontal=FALSE)). My problem is that I can't, for the life of me, seem to get rid of the inter-bar space -- box.ratio set to 1 doesn't