[R] data in legend

Emmanuel Paradis paradis at isem.univ-montp2.fr
Thu Sep 12 12:52:14 CEST 2002


At 12:35 12/09/02 +0200, you wrote:
>Hi!
>I would print some element of a vector between a text inside a legend of a
>plot(base),
>someone could say me how to do it?
>Thanks in advance!
>A.Semeria

Perhaps something like this could help:

x <- 1:3
plot(x, pch = x)
legend(1, 3, legend = paste("pch =", x), pch = 1:3)


EP
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list