[R] adding text to persp

Paul Murrell p.murrell at auckland.ac.nz
Fri Nov 9 00:41:19 CET 2001


Hi


> 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().


The functions title() and axis() [and other "annotation" functions] rely
very much on the standard layout of 2D plots in R.

persp() does its own internal calculations to layout graphics in 3D and
title() and axis() [and other "annotation" functions] do not have access to
that layout information so they cannot be used to place (or size) text [or
lines, or ...] in a meaningful way relative to the 3D plot.

In S-Plus, the situation is slightly better because there the persp()
function returns some information about the translation between 2D and 3D,
which allows the user to do some meaningful annotations using lines(),
points(), etc...

There is nothing in principle that prevents us from doing something similar
in R and there _may_ be something like this done in the next couple of
months.

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



More information about the R-help mailing list