[R] legend with density and fill
A.Robinson at ms.unimelb.edu.au
Sat Mar 17 20:48:58 CET 2007
fill=c("white","dark grey","black","black"), density=c(NA,NA,25,75),
On Sat, Mar 17, 2007 at 12:36:19PM +0000, Simon Pickett wrote:
> 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.
> legend(8.5,0.3, bty="o", legend=c("young","old","male","female"),
> 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
> Tel 01326371852
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
Department of Mathematics and Statistics Tel: +61-3-8344-9763
University of Melbourne, VIC 3010 Australia Fax: +61-3-8344-4599
More information about the R-help