[R] persp() and character labels for axis

Uwe Ligges ligges at statistik.uni-dortmund.de
Wed Jan 25 12:56:28 CET 2006


Thomas Steiner wrote:

> I want to plot dates on the y-axis of a persp() plot.
> 
> persp(x=1:30,y=days,y=yields)
> axis(2, 1:5, LETTERS[1:5])
> 
> does not work. On the mailinglist I found old messages, that said,
> that text() does not apply (yet) for 3-d plots. And the same question

?persp points you to ?trans3d which is useful to calculate coordinates 
for calls to 2D functions such as text().

Uwe Ligges

> ( http://www.r-project.org/nocvs/mail/r-help/2002/9009.html ) was not
> answered. Perhaps this time? ;)
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list