Skip to contents

Violin plots showing the cell neighbor composition of each neighborhood.

Usage

plotNeighborhoodCellCounts(object, nn, feature, color.pal = NULL)

Arguments

object

A SpatialMap object with cellNeighborhoods and neighborhoodClusters run.

nn

The name of an NN object. NN objects can be viewed using the listNNs function

feature

The name of the cellMetadata feature (e.g. cell type) used for defining neighborhoods.

color.pal

The color palette to use. Should be a vector of colors matching the number of feature categories

Value

A ggplot object

Scroll to top