Skip to contents

Visualize frequency distribution of INCOMMON classes.

Usage

plot_class_fraction(x, tumor_type, gene, ...)

Arguments

x

A list of objects of class 'INCOMMON' containing the classification results, as produced by using function classify.

tumor_type

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

gene

Gene for gene-specific prior.

...

Default S3 method parameter.

Value

An object or a list of class 'ggplot2'.

Examples

# First load example classified data
data(MSK_classified)
# Plot class fraction for a specific gene and tumour type
plot_class_fraction(x = MSK_classified, tumor_type = 'LUAD', gene = 'KRAS')
#>  The frequency of states AM, CNLOH, HMD, LOH, and Tier-2 are 0.26, 0.18, 0.51, 0.01, and 0.04