p3d: Three dimensional plotting

Description Usage Arguments Value Author(s) See Also Examples

Description

Three dimensional plotting of points. Produces a nice-looking 3D scatterplot with greying out of further points givin a visual depth cue

Usage

1
p3d(x, y, z, xlim = NULL, ylim = NULL, zlim = NULL, d0 = 0.2, h = 1, ...)

Arguments

x,y,z

vector of x,y,z coordinates to be plotted. If x is a matrix, interpret the rows as 3D Cartesian coordinates

xlim,ylim,zlim

Limits of plot in the x,y,z directions, with default NULL meaning to use range()

d0

E-folding distance for graying out (depths are standardized to be between 0 and 1)

h

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()

Value

Value returned is that given by function trans3d().

Author(s)

Robin K. S. Hankin

See Also

bunny

Examples

1
2
data(bunny)
p3d(bunny,theta=3,phi=104,box=FALSE)

Example output

Warning messages:
1: In plot.xy(xy.coords(x, y), type = type, ...) :
  "theta" is not a graphical parameter
2: In plot.xy(xy.coords(x, y), type = type, ...) :
  "phi" is not a graphical parameter
3: In plot.xy(xy.coords(x, y), type = type, ...) :
  "box" is not a graphical parameter

onion documentation built on Feb. 11, 2021, 9:06 a.m.