Function to plot reference, colored by cell type
plotReference(
reference,
as.density = TRUE,
bins = 10,
bandwidth = 1.5,
title = "Reference",
color.by = "cell_type",
celltype.colors = NULL,
show.legend = TRUE,
show.labels = TRUE,
show.centroids = FALSE
)A ggplot object.
Symphony reference object (must have UMAP stored)
if TRUE, plot as density; if FALSE, plot as individual cells
for density, nbins parameter for stat_density_2d
for density, bandwidth parameter for stat_density_2d
Plot title
metadata column name for phenotype labels
custom color mapping
Show cell type legend
Show cell type labels
Plot soft cluster centroid locations