[R] adding text to persp

Toby.Patterson@csiro.au Toby.Patterson at csiro.au
Wed Nov 7 02:21:32 CET 2001


On a related topic to this - can someone tell me how to independently alter
the fontsize and position of text on a persp plot?? 
I've tried using titles() and axes() but they seem to only apply to the
standard plot() and contour plots (contour() and filled.contour(). 

Toby 

-----Original Message-----
From: Paul Murrell [mailto:p.murrell at auckland.ac.nz]
Sent: 15 October, 2001 9:29 AM
To: dorairaj at dms.auburn.edu; r-help at stat.math.ethz.ch
Subject: Re: [R] adding text to persp


Hi


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

Paul



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
_._
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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