Thank you for your answer. I have about 7 stacks it is not very appealing to have just
stripes with changing angles. I was wondering if there is a way to have varying
patters in black and white.
Osman
----- Original Message -----
From: Petr Pikal
To: Osman
Cc: [EMAIL PROTECTED]
Sent: Monday, May 31, 2004 5:01 AM
Subject: Re: [R] bar plot patterns
On 29 May 2004 at 16:54, Osman wrote:
> Dear R users,
>
> Is there a package or function that can produce multiple fill patterns
> to be used instead of colors in barplots or pie charts? Shades of grey
> are difficult to differentiate if more than 3 to 5..
Hi
This is what help page says about colours and shading lines
density: a vector giving the density of shading lines, in lines per
inch, for the bars or bar components. The default value of
'NULL' means that no shading lines are drawn. Non-positive
values of 'density' also inhibit the drawing of shading
lines.
angle: the slope of shading lines, given as an angle in degrees
(counter-clockwise), for the bars or bar components.
col: a vector of colors for the bars or bar components.
Do you want something else than
barplot(1:3, col=c(2,3,3),density=c(2,4,6), angle=c(30,60,90))
Cheers
Petr
>
> Osman
> [[alternative HTML version deleted]]
>
> ______________________________________________
> [EMAIL PROTECTED] mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
Petr Pikal
[EMAIL PROTECTED]
[[alternative HTML version deleted]]
______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html