Plot similarity to brain structures

plot_structure_similarity(object, ...)

# S3 method for VoxelMap
plot_structure_similarity(
  object,
  groups = NULL,
  annotation_level = "custom_3",
  annotation_colors = sym_colors_custom2,
  map_colors = blues_flat,
  cluster = TRUE,
  include_unannotated = FALSE,
  scale = T,
  ...
)

# S3 method for BrainSpanMap
plot_structure_similarity(
  object,
  groups = NULL,
  annotation_level = c("structure_group", "structure_name", "structure_acronym"),
  map_colors = blues_flat,
  scale = TRUE
)

# S3 method for MousebrainMap
plot_structure_similarity(
  object,
  groups = NULL,
  map_colors = blues_flat,
  cluster = TRUE,
  scale = TRUE,
  ...
)

Arguments

groups

A metadata column or character vector to group the cells, e.g. clusters, cell types.

annotation_level

The structure annotation level to color code.

annotation_colors

Color map for structure annotation.

cluster

Logical. Perform hierarchical clustering on rows and columns.

Value

A plot showing average correlation to each brain structure.

A similarity map.

A plot showing average correlation to each brain structure.