plot.glasser: Plot Glasser Atlas

View source: R/glasser.R

plot.glasserR Documentation

Plot Glasser Atlas

Description

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

Usage

## 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

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

Value

A ggiraph interactive plot object


bbuchsbaum/neuroatlas documentation built on Dec. 24, 2024, 4:22 a.m.