Skip to contents

Visualize prior distribution for a gene (tumor-specific or pancancer).

Usage

plot_prior(x, gene, tumor_type)

Arguments

x

A prior distribution in the format required for INCOMMON, such as INCOMMON::pcawg_priors.

gene

Gene for gene-specific prior.

tumor_type

Tumor type for tumor-specific prior ('PANCA' for pan-cancer).

Value

An object or a list of objects of class 'ggplot2'.

Examples

# First load example classified data
data(MSK_classified)
# Plot classification results for a specific sample
plot_prior(x = MSK_classified, gene = 'TP53', tumor_type = 'PAAD')