[R] adding text to persp

Paul Murrell p.murrell at auckland.ac.nz
Mon Oct 15 00:28:56 CEST 2001


> Any ideas on adding text to persp plots? The perspp function from S-plus
> is not implemented. I'm using R1.3.0 on Win2000.

One thing that might be useful to try is something like ...

    persp(1:10, 1:10, outer(1:10, 1:10))
    text(locator(1), "Here's some text")  # click on graph where you want


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