r - How to cut off persp3d outside of the plot area -


i plotting bivariate function x*y using persp3d.

if not use zlim shape of graph distorted rescaling:

persp3d(x,y,z, theta = 10, phi = 15, forceclipregion = true, shade = 0.3) 

without zlim

if use zlim function plots outside of plot area, , of coloring invisible:

persp3d(x,y,z, theta = 10, phi = 15, zlim=c(0,4), forceclipregion = true, shade = 0.3) 

enter image description here

is there way make r crop plot @ top of box?


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -