I've been trying (unsuccessfully) to export a postscript or pdf snapshot of a persp3d
plot using rgl.postscript
. I've added code from ?rgl.postscript
which works for me without error in R but produces a 0 KB postscript file. Any ideas?
x <- y <- seq(-10,10,length=20)
z <- outer(x,y,function(x,y) x^2 + y^2)
persp3d(x,y,z, col='lightblue')
title3d("Using LaTeX text", col='red', line=3)
rgl.postscript("persp3da.ps","ps",drawText=FALSE)
FYI, I'm running R version 3.1.1 (2014-07-10), Windows 8 (64-bit), rgl package 0.94.1143