[R] filled bars with patterns
mueller at cancer.org.uk
Wed Mar 13 05:08:46 CET 2002
yes, that's sort of what I was looking for. But I've to mix filled bars
with striped bars in a stacked barplot. I could just set the density for
the completely filled bars to something realy high (1000) but it's realy
slow to draw. Is there a way to mix stiped bars and filled pars in the
I've done something like this:
barplot(m, beside = FALSE, horiz = TRUE, density = c(-1,10,-1,10,-1,10),
xlab = "fraction of genome",
col = cols, xlim = c(0,100), axes = FALSE)
thanks a lot,
On Wed, 13 Mar 2002, Paul Murrell wrote:
> > I've created a view stacked barplots where some of the bars should
> > contain a pattern such as stripes. Adjacent bars of the same stack
> > should have the same colour but a different finnling pattern. Is R able
> > to do that?
> > Anyway, it's not the end of the world if not, a workaround would be to
> > export the plot in fig format and then using xfig to make the bar
> > filling striped, dotted etc ...
> Take a look at the last example of example(barplot) -- is this the sort of
> thing you want to do?
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help