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 10000 doesn't do much.  Any ideas?  I'd
ideally want zero space between the bars.  Thanks!

You didn't provide any data (nor did you illustrate with one of the available datasets that are used in examples.)

Compare these two outputs:

barchart(yield ~ year, data = barley,
         groups = variety,   ylab = "Barley Yield (bushels/acre)",
        )

barchart(yield ~ variety, data = barley,
         groups = year,   ylab = "Barley Yield (bushels/acre)",
        )

... and notice that the variables in the "group" have no separation of their bars whereas the rhs variables do. This is the opposite of what I expected, so perhaps you think as I did and reversing the roles of"y" and "z" might help?

--

David Winsemius, MD
West Hartford, CT

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to