[R] persp() and character labels for axis

Thomas Steiner finbref.2006 at gmail.com
Thu Jan 26 12:03:53 CET 2006


I upgraded and it still does not work.
I want something like this for 3d-persp() plots:

days=c("2006-01-23","2006-01-24","2006-01-25","2006-01-26","2006-01-27","2006-01-28")
sq=(1:6)^2
plot(x=as.Date(days, format="%Y-%m-%d"),y=sq, type="l", main="What I
learn about R", sub=R.version.string)

sq3d=matrix(nrow = 4, ncol = 6)
for (i in 1:4) {
  sq3d[i,]=sq+i
}
persp(x=1:4,y=1:6,z=sq3d,theta = 30, phi = 30, expand = 0.5, col = "lightblue")

(but y=days....)

Thomas




More information about the R-help mailing list