Generate heatmaps of real and estimated cell type proportions side by side. Pearson correlation can be calculated and printed.

Prop_comp_multi(
  prop.real,
  prop.est,
  method.name = NULL,
  title = NULL,
  eval = TRUE,
  ...
)

Arguments

prop.real

a matrix of real cell type proportions

prop.est

a matrix or a list of matrices of estimated cell type proportions

method.name

vector of the names of estimation methods. Default is NULL and the names will be generated automatically as 'Est1', 'Est2', ...

title

a string of the title of the plot

eval

logical, default as TRUE. If TRUE, pearson correlation evaluation will be printed on the figure.

Value

a 'ggplot' object with [ggplot2::geom_tile]

Examples

# generate random data