wf3d.pupil | R Documentation |
Interactive plot of a wavefront using the OpenGL package
rgl. This is a 3D plotting method for objects of
class "pupil"
.
wf3d.pupil(wf, cp=NULL, zoom.wf = 1, surf.col = topo.colors(256), bg.col = "black",
eqa=FALSE, new.window=TRUE)
wf |
A matrix of wavefront values |
cp |
A list describing the pupil boundary |
zoom.wf |
Zoom factor for heights |
surf.col |
Color palette for surface |
bg.col |
Background color |
eqa |
Equal area per color? |
new.window |
If TRUE (the default), open a new rgl deice. Otherwise clears and re-uses an existing window if available |
The default color palette will match the colors in the default
version of plot.pupil
.
none
M.L. Peck mpeck1@ix.netcom.com
The rgl package is available from CRAN.
plot.pupil
# create a random wavefront
wf <- pupil(zcoef=rnorm(length(makezlist()$n), mean=0, sd=0.01))
# the default method
plot(wf)
#this is more fun
wf3d(wf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.