Re: [R] pattern instead of colors in bargraph

From: Rainer M KRug <RMK_at_krugs.de>
Date: Mon 15 May 2006 - 18:40:42 EST

Uwe Ligges wrote:

> Rainer M KRug wrote:
> 

>> Hi
>>
>> I am using R 2.2.0 under SuSE 10.
>>
>> I am creating a graph by using the following script:
>>
>>
>> DietF <- read.csv ("DietFem.csv", header = TRUE, as.is=TRUE)
>> attach (DietF)
>> PP <- array(c(bud,flower,shoot,melon,seed.pod,detritus,other), c(16,7))
>> M <- paste (Month)
>> detach (DietF)
>> png(filename="DietF.png", width=960)
>> barplot (t(PP), ylim=c(0,1), names.arg=M, space=0.3, ylab="proportion of
>> diet")
>> dev.off()
>>
>> The problem is that I would need the bars to be filled with pattern
>> (striped, diagonal striped, dotted, ...) instead of the colors as it is
>> extremely difficult to see which is which.
>>
>> I didn't find anything in the help which showed me how to do it.
> 
> Then please re-read it and look at the arguments "desnity" and "angle".
> 
> Uwe Ligges


Thanks a lot (I mean it!) - it must have been to late on Saturday evening when I looked at it.

Rainer



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon May 15 18:43:42 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 15 May 2006 - 20:10:06 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.