[R] legend with density and fill
Simon Pickett
S.Pickett at exeter.ac.uk
Sat Mar 17 13:36:19 CET 2007
Hi,
I am trying to make a legend with four symbols as follows
1.white box
2.black box
3.clear box (same as background)
4.clear box with shading lines
but the shading lines arent showing...
here is my code.
par(bg="lightyellow")
barplot(c(seq(1,6,1)))
legend(8.5,0.3, bty="o", legend=c("young","old","male","female"),
col="black",cex=1.5,
fill=c("white","dark grey",0,0),density=c(NA,NA,0,100),angle=45)
any suggestions much appreciated,
Thanks, Simon.
Simon Pickett
PhD student
Centre For Ecology and Conservation
Tremough Campus
University of Exeter in Cornwall
TR109EZ
Tel 01326371852
More information about the R-help
mailing list