[R] Question about legend

Haiyong Xu xuhy at ucla.edu
Fri Feb 18 11:11:41 CET 2005


Hi there,

I made a plot with histogram and the curve of kernel density estimation 
together. The question is to add a legend to it. What I want is to use a 
small box with shade representing the histogram and a line representing 
the kernel estimation. Is there any way to implement this?

Thanks a lot.

Haiyong




More information about the R-help mailing list