plot.glasser | R Documentation |
Creates an interactive visualization of the Glasser atlas with mapped values using ggseg and ggiraph.
## S3 method for class 'glasser'
plot(
x,
y,
vals = NULL,
thresh = c(0, 0),
pos = FALSE,
position = "stacked",
colour = "gray",
guide = TRUE,
palette = "cork",
lim = NULL,
...
)
x |
A Glasser atlas object |
y |
Ignored (required for compatibility with generic plot method) |
vals |
Numeric vector of values to visualize. If NULL (default), all regions will be assigned a value of 1, creating a uniform visualization |
thresh |
Numeric vector of length 2 for thresholding values |
pos |
Logical. If TRUE, uses raw values for thresholding |
position |
Character. Layout type ("stacked" or "dispersed") |
colour |
Character. Border color for regions |
guide |
Logical. Whether to show color guide |
palette |
Character. Name of scico color palette |
lim |
Numeric vector of length 2 for color scale limits. If NULL, will be set to range of vals |
... |
Additional arguments passed to methods |
A ggiraph interactive plot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.