[R] altering legend with plot(density(..))
Brian Hook
hook_l at bookofhook.com
Tue Mar 1 17:09:29 CET 2005
On Tue, 01 Mar 2005 16:38:42 +0100, Uwe Ligges wrote:
> 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"?
Ah, yes, I was confusing xlab with the legend. Sorry for that. In
addition, "legend" wasn't showing up where I expected (beneath xlab)
-- is there a way to put a legend outside of the graph itself?
Thank you,
Brian
More information about the R-help
mailing list