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. Thanks, Brian
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
>>>>> "Brian" == Brian Hook <hook_l at bookofhook.com> >>>>> on Tue, 1 Mar 2005 09:42:46 -0500 writes:Brian> I'm having a hard time modifying the legend that is Brian> emitted by default when calling plot(density(...)) Brian> and then legend(). I've looked at the docs and I'm Brian> not sure what I'm doing wrong, if anything. Any Brian> advice appreciated. Brian> ______________________________________________ Brian> R-help at stat.math.ethz.ch mailing list Brian> https://stat.ethz.ch/mailman/listinfo/r-help Brian> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html could PLEASE do what the line above asks you to do, and then re-post your question accordingly? Thank you, Martin Maechler, ETH Zurich
Seemingly Similar Threads
- plot legend: combining filled boxes and lines
- '...' passed to both plot() and legend()
- Adding a legend to R graph device with several plots (no to individual plots!)
- densCols: what are the computed densities and how to create a legend
- Wishlist: specify the border color of boxes in legend() (PR#13913)