persp.setup(lty=<<see below>>, col=<<see below>>, lwd=<<see below>>, all=<<see below>>, restore=F)
x <- seq(0, 3*pi, by=.2) y <- seq(3, 0, by=-.2) z <- outer(cos(x), exp(-y), "*")# make lines on the top color 1 and lines on the bottom color 2 # the hidden lines will not be drawn. persp.setup(lty=c(1,1,1), col=c(1,1,2), lwd=c(1,0,1)) persp(z)
# hidden lines with a dotted pattern # the visible lines on the top thicker, all in one color persp.setup(lty=c(1,2,1), col=c(1,1,1), lwd=c(2,1,1)) persp(z)
# look at the current values for the line styles print(persp.setup())
ps.old <- persp.setup(col=1:3) persp(z) persp.setup(all=ps.old) # change back to ps.old values