Plot CellTypeData metrics such as mean_exp, specificity and/or specificity_quantiles.

plot_ctd(ctd, genes, level = 1, metric = "specificity", show_plot = TRUE)

Arguments

ctd

CellTypeDataset.

genes

Which genes in ctd to plot.

level

Annotation level in ctd to plot.

metric

Which metric in the ctd to plot:

  • "mean_exp"

  • "specificity"

  • "specificity_quantiles"

show_plot

Whether to print the plot or simply return it.

Value

ggplot object.

Examples

ctd <- ewceData::ctd()
#> see ?ewceData and browseVignettes('ewceData') for documentation
#> loading from cache
plt <- EWCE::plot_ctd(ctd, genes = c("Apoe", "Gfap", "Gapdh"))