powered by
Three dimensional plotting of points. Produces a nice-looking 3D scatterplot with greying out of further points givin a visual depth cue
p3d(x, y, z, xlim = NULL, ylim = NULL, zlim = NULL, d0 = 0.2, h = 1, ...)
vector of \(x\) coordinates to be plotted. If a matrix, interpret the rows as 3D Cartesian coordinates
Vector of \(y\) coordinates to be plotted
Vector of \(z\) coordinates to be plotted
Limits of plot in \(x\) direction, with default of NULL meaning to use range(x).
NULL
range(x)
Limits of plot in \(y\) direction, with default of NULL meaning to use range(y).
range(y)
Limits of plot in \(z\) direction, with default of NULL meaning to use range(z).
range(z)
Efolding distance for graying out (depths are standardized to be between 0 and 1).
The hue for the points, with default value of 1 corresponding to red. If NULL, produce black points greying to white.
Further arguments passed to persp() and points()
persp()
points()
Value returned is that given by function trans3d().
trans3d()
bunny
# NOT RUN { data(bunny) p3d(bunny,theta=3,phi=104,box=FALSE) # }
Run the code above in your browser using DataLab