[R] troubles with displaying legend on the plot
Wladimir Eremeev
wl at eimb.ru
Wed Apr 16 10:26:11 CEST 2003
Dear colleagues,
Thank you, I've already realized that...
Is is possible to place the legend outside a plot in any other way
except using lattice package?
BTW, maybe it would be useful to place this question in FAQ?
I've searched the mail archive. The question about placing the legend
outside a plot already have arose...
Wednesday, April 16, 2003, 11:52:49, you wrote:
ККН> Hi! It seems, that y-coord of your legend (1979,0), (0,0) located
ККН> outside your coordinate system.
ККН> par(usr=c(1979,2002,20,90),mar=c(7, 4, 4, 2) + 0.1)
ККН> You can use par('usr') to determine extremes of your coordinates
ККН> for automatic legend placing. Or you can
ККН> legend(locator(1),[other options])
ККН> to place legend on your plot interactively.
ККН> Notice, that the y-coord has its 0 in the _bottom_ of figure region.
--
Best regards
Wladimir Eremeev mailto:wl at eimb.ru
==========================================================================
Research Scientist Leninsky Prospect 33,
Space Monitoring & Ecoinformation Systems Sector, Moscow, Russia, 119071,
Institute of Ecology, Phone: (095) 135-9972;
Russian Academy of Sciences Fax: (095) 954-5534
More information about the R-help
mailing list