[R] barchart but with boxes
jim at bitwrit.com.au
Mon Jun 7 13:27:12 CEST 2010
On 06/07/2010 04:53 PM, Daisy Englert Duursma wrote:
> Hello r-help.
> I have been working on making a graph and have several solutions but
> they are tedious at best.
> Here is an example dataset:
> What I want to create is a basically a bar chart, but I define the
> min (min) and max (max) for the bars.
> These bars are separated into three categories (catg). Within each
> category the bars are allowed to overlap. I set the bars to have a
> transparent color so that I can see agreement of the items within a
> category based on the darkness of color.
> One method I came up with, is to use ggplot2 and geom_tile but then I
> have to give x,y coordinates for every corner of every box.
> Considering the size of my real datasets, and not this little example
> dataset, this seems annoying.
> I could even just graph lines with the defined min and max. With that
> I could make the lines thick and achieve the effect I am looking for.
How about this?
You can program a function to calculate the offsets if you want to do
lots of these.
More information about the R-help