[R] Removing inter-bar spaces in barchart

Deepayan Sarkar deepayan.sarkar at gmail.com
Thu Aug 26 10:02:41 CEST 2010


On Thu, Aug 26, 2010 at 5:22 AM, Jonathan Greenberg
<greenberg at 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!
> barchart(barchart_test_bins~barchart_test_heights,groups=groups)

barchart(barchart_test_bins~barchart_test_heights,groups=groups, box.width = 1)

(see ?panel.barchart.)

-Deepayan



More information about the R-help mailing list