Assigns colours to cell regions based on cell ID, area, circularity, or cluster membership.
Usage
sg_plot_mask(
mask,
color_by = c("id", "area", "circularity", "cluster"),
features = NULL,
palette = "viridis"
)Examples
labels <- matrix(c(0L, 1L, 1L, 2L, 2L, 0L, 3L, 3L, 0L), 3, 3)
mask <- new_sg_mask(labels)
p <- sg_plot_mask(mask)
p