enter
Intermountain Healthcare
[EMAIL PROTECTED]
(801) 408-8111
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Deb Midya
> Sent: Tuesday, August 21, 2007 5:29 AM
> To: r-help@stat.math.ethz.ch
> Subject: [R] Stacked Bar
>
>
On 8/21/07, Stephen Tucker <[EMAIL PROTECTED]> wrote:
> I think you want to use the 'density' argument. For example:
>
> barplot(1:5,col=1)
> legend("topleft",fill=1,legend="text",cex=1.2)
> par(new=TRUE)
> barplot(1:5,density=5,col=2)
> legend("topleft",fill=2,density=20,legend="text",bty="n",cex=
I think you want to use the 'density' argument. For example:
barplot(1:5,col=1)
legend("topleft",fill=1,legend="text",cex=1.2)
par(new=TRUE)
barplot(1:5,density=5,col=2)
legend("topleft",fill=2,density=20,legend="text",bty="n",cex=1.2)
(if you wanted to overlay solid colors with hatching)
Here's
Jim,
Thanks for such a quick response. It works well. Is it possible to fill the
bars with patterns and colours?
Regards,
Deb
Jim Lemon <[EMAIL PROTECTED]> wrote:
Deb Midya wrote:
> Hi R Users!
>
> Thanks in advance.
>
> I am using R-2.5.1 on Windows XP.
>
> I am trying to
Deb Midya wrote:
> Hi R Users!
>
> Thanks in advance.
>
> I am using R-2.5.1 on Windows XP.
>
> I am trying to do a stacked bar plot, but could not get through the following
> problem. The code is given below.
>
> 1. How can I provide 15 different colors for each method with 15 Rows?
>
Hi R Users!
Thanks in advance.
I am using R-2.5.1 on Windows XP.
I am trying to do a stacked bar plot, but could not get through the following
problem. The code is given below.
1. How can I provide 15 different colors for each method with 15 Rows?
2. How can I put the legend in a