Skip to contents

Creates an interactive visualization of the Glasser atlas with mapped values using ggseg and ggiraph.

Plot methods for various atlas objects in the neuroatlas package

Usage

# S3 method for class 'atlas'
plot(x, y, ...)

# 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,
  ...
)

Arguments

x

An atlas object (atlas, glasser, schaefer, etc.)

y

Ignored (required for S3 consistency)

...

Additional arguments passed to specific plot implementations

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

Value

A ggiraph interactive plot object

A plot object (specific type depends on the atlas)