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,
  type_of_aggregate,
  column
)

Arguments

composition

- a dataframe output from cluster_percent_composition

pheno_to_exclude

Vector of phenotype to exclude

log_values

TRUE if the percentages should be logged (base 10)

type_of_aggregate

Cluster or Community

column

Column with cell types

Value

A plot is returned