[R] How to plot legend to the margin area of the graph?

Uwe Ligges ligges at statistik.uni-dortmund.de
Tue Jan 10 08:50:14 CET 2006


Vincent Deng wrote:

> Dear R-helpers,
> 
> 
> When plotting a graph, what command should I use to mark legend to the
> margin area of that graph?

Example:

plot(1:10)
par(xpd=TRUE)
legend(8,11.5,"Hello World")

Uwe Ligges


> ______________________________________________
> 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