display a surface via with rgl
1 2 3 4 5 | view_surface(surfgeom, vals = NA, cmap = rainbow(256, alpha = 1),
vert_clrs = NULL, bgcol = "lightgray", alpha = 1,
add_normals = TRUE, thresh = NULL, irange = range(vals, na.rm =
TRUE), specular = specular, viewpoint = c("lateral", "medial",
"ventral", "posterior"), offset = c(0, 0, 0), zoom = 1, ...)
|
surfgeom |
surface geometty of type |
vals |
the |
cmap |
a color map consisting of a vector of colors in hex format (e.g. |
vert_clrs |
optional vertex colors in hex format |
bgcol |
a background color or vector of colors used to shade the surface. |
alpha |
the foreground trasnparency, default is 1 (opaque). |
add_normals |
whether to add_normals |
thresh |
a 2-element vector indicating the lower and upper transparency thresholds. |
irange |
the intensity range indicating the low and high values of the color scale. |
specular |
see |
viewpoint |
the surface viewpoint (one of: 'lateral', 'medial', 'ventral', 'posterior') |
offset |
translation offset |
zoom |
zoom factor |
... |
args to send to rgl::shade3d |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.