[R] filled bars with patterns

Arne Mueller mueller at cancer.org.uk
Wed Mar 13 05:08:46 CET 2002


Hi,

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
same plot?

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,

	Arne


On Wed, 13 Mar 2002, Paul Murrell wrote:

> Hi
> 
> 
> > 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?
> 
> Paul
> 
> 
> 

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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 mailing list