vrml.plot3d {mining} | R Documentation |
Creates a VRML scene with the given points.
vrml.plot3d.default(x,y,z,data=parent.frame(),xlab,ylab,zlab, pch=0,col=3,scale=c(1,1,1),file.name=NULL, cex=1,cex.axis=12,light=T,axes=T,...) vrml.plot3d.data.frame(frame,...) vrml.plot3d.formula(formula,data,...)
x,y,z |
numeric vectors giving the coordinates of the points. |
frame |
a data frame with three columns. |
data |
an environment in which to lookup x,y,z. |
xlab,ylab,zlab |
axis labels. |
pch |
a numeric code for the graphic object to place at each location. See details. |
col |
a single color or vector of colors, used to color the points. |
scale |
a vector of 3 numbers, defining the size of the box into which the points are placed. You can control the aspect ratio this way. |
file.name |
a filename (with or without the .wrl extension) to
receive the VRML. If NULL , a temporary name is chosen. |
cex |
a scale factor for the objects. |
cex.axis |
a scale factor for the axis labels. |
light |
If TRUE , the scene will contain a light at each
corner of the cube, with no headlight.
Otherwise, the scene will contain no lights and rely on the
headlight only. |
axes |
If TRUE , a box with axis labels is drawn around the
points. |
... |
additional arguments to pass to the internal drawing routines,
or to pass through to vrml.plot3d.default
(for the data.frame and formula methods). |
A VRML scene description file is created, and opened with a browser if one is available.
VRML is a standard language for describing 3D scenes, and the file produced by this function should be portable across all machines with a VRML browser.
If pch=0
, a cube is placed at each location.
If pch=1
, a sphere is placed at each location.
If pch="."
, a dot is placed at each location.
The latter option is the fastest, and will be chosen automatically if
the scale is small or the dataset is large.
Tom Minka
http://web3d.vapourtech.com/tutorials/vrml97/
www.wed3d.org/resources/vrml_ref_manual/Book.html
data(Housing) w = pca(HousingT,k=3) x = project(HousingT,w) plot.new() vrml.plot3d(x)