plot,SurfaceGeometry,missing-method | R Documentation |
plot a surface
## S4 method for signature 'SurfaceGeometry,missing'
plot(
x,
vals = NA,
cmap = grDevices::gray(seq(0, 1, length.out = 255)),
vert_clrs = NULL,
irange = range(vals),
thresh = c(0, 0),
alpha = 1,
specular = "black",
bgcol = "lightgray",
...
)
## S4 method for signature 'NeuroSurface,missing'
plot(
x,
cmap = grDevices::gray(seq(0, 1, length.out = 255)),
vert_clrs = NULL,
irange = range(x@data, na.rm = TRUE),
thresh = c(0, 0),
alpha = 1,
specular = "black",
bgcol = "lightgray",
...
)
## S4 method for signature 'LabeledNeuroSurface,missing'
plot(
x,
cmap = x@cols,
vert_clrs = NULL,
irange = range(x@data, na.rm = TRUE),
thresh = c(0, 0),
alpha = 1,
specular = "black",
bgcol = "lightgray",
...
)
x |
the surface to plot |
vals |
A numeric vector of values corresponding to each surface node. These values will be mapped to colors using the provided color map ( |
cmap |
A color map consisting of a vector of colors in hex format. Default is |
vert_clrs |
Optional vertex colors in hex format. If provided, these colors will override the colors generated from |
irange |
A numeric vector of length 2 indicating the lower and upper bounds of the intensity range for the color scale. Default is the range of |
thresh |
A numeric vector of length 2 indicating the lower and upper transparency thresholds. Nodes with values outside this range will be made transparent. |
alpha |
A numeric value indicating the transparency level of the surface. The default is 1 (fully opaque). Values should be between 0 (fully transparent) and 1 (fully opaque). |
specular |
A color in hex format or a numeric value indicating the specular reflection color used for lighting. Default is |
bgcol |
A color or vector of colors in hex format used to shade the surface background. Default is |
... |
extra args to send to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.