[R] legend question
Ranjan Maitra
maitra at iastate.edu
Wed Feb 28 17:21:50 CET 2007
On Wed, 28 Feb 2007 17:06:18 +0100 Emili Tortosa-Ausina <Emili.Tortosa at eco.uji.es> wrote:
> y<-c(1960, 1965, 1970, 1975)
> z<-c(1, 2, 3, 4)
> plot(y, z, type="l", col = 2)
> legend(x = -3, y = .9, "legend text", pch = 1, xjust = 0.5)
your x and y are outside the plotting area. try using a different set, or better still use locator() to specify x, y interactively.
hth,
ranjan
More information about the R-help
mailing list