Plots cells proportions as barplots.
plot_cell_percentages(
cell_proportions,
cells_to_exclude = NULL,
cellprop_colname = "Proportion_name"
)
Data Frame. Output from
calculate_cell_proportions
.
String Vector. Markers to exclude.
String. Column to use for y axis names. Default is "Proportion_name".
A plot is returned
p_cells <- calculate_cell_proportions(SPIAT::simulated_image)
plot_cell_percentages(p_cells)