Hi all, I've got a simple 3D plot as follows...
> xx <- seq(-20,20,.5) > yy <- seq(-20,20,.5) > zFunc <- function(x,y){3*x^2*y} > z <- outer(xx,yy,zFunc) > persp(xx,yy,z,theta=30,phi=30,ticktype="detailed") Just beautiful! My question is how do I constrain the plot to only display x^2 <= y <= 1? Thanks in advance, Nick [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.