Produces a heatmap showing the marker percentages within each cluster and the cluster sizes.
plot_composition_heatmap(
composition,
pheno_to_exclude = NULL,
log_values = FALSE,
feature_colname
)
Data.frame. Output from
composition_of_neighborhoods
.
String Vector of phenotype to exclude.
Boolean. TRUE if the percentages should be logged (base 10).
String. Column with cell types.
A plot is returned
neighborhoods <- identify_neighborhoods(image_no_markers, method = "hierarchical",
min_neighborhood_size = 100, cell_types_of_interest = c("Immune", "Immune1", "Immune2"),
radius = 50, feature_colname = "Cell.Type")
neighborhoods_vis <- composition_of_neighborhoods(neighborhoods, feature_colname="Cell.Type")
plot_composition_heatmap(neighborhoods_vis, feature_colname="Cell.Type")