[R] altering legend with plot(density(..))

Uwe Ligges ligges at statistik.uni-dortmund.de
Tue Mar 1 16:38:42 CET 2005


Brian Hook wrote:

> I'm having a hard time modifying the legend that is emitted by default 
> when calling plot(density(...)) and then legend().  I've looked at the 
> docs and I'm not sure what I'm doing wrong, if anything.  Any advice 
> appreciated.

So, can you tell us what is wrong with
   set.seed(123)
   plot(density(rnorm(100)))
and where the legend is? Maybe you don't like the defaults for "xlab" or 
"main"?

Uwe Ligges

> Thanks,
> 
> Brian
> 
> ______________________________________________
> R-help at 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




More information about the R-help mailing list