Skip to contents

Visualise the prior distribution on sample purity

Usage

plot_purity_prior(x, sample, purity_error = 0.05)

Arguments

x

An object of class INCOMMON.

sample

An identifier of the tumour sample.

purity_error

The variance of the Beta prior distribution on purity.

Value

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

Examples

# First load example classified data
data(MSK_PAAD_output)
# Plot classification results for a specific sample
plot_purity_prior(x = MSK_PAAD_output, sample = "P-0000142", purity_error = 0.05)