
Plot a Mixture of Poissons
PoissonsMixturePlot.Rd
This function plots the mixture models for a component that is composed of poisson distributions.
All mixture components are plotted.
Optionally, the user can provide a matrix of components by signatures and indicate a sig_of_interest
.
This will result in the lower-weight components (the curves) for the indicated signature being greyed out.
The threshold for this grey-shading functionality can be changed using the threshold
parameter.
Usage
PoissonsMixturePlot(
components,
signatures = NULL,
sig_of_interest = 1,
log_flag = FALSE,
component = "bp10MB",
threshold = 0.3
)
Arguments
- components
A list of either matrices/dataframes containing the distribution parameter (lambda) or S4 objects belonging to the class 'flexmix'.
If providing dataframes, place parameter in row and each component along the columns.- signatures
(optional) A dataframe with components in the rows and signatures in the columns.
- sig_of_interest
(optional) Integer. A single integer corresponding the column from the signatures input param.
- component
(optional) String. Which component to draw the poisson 'curves' for. (options: bp10MB, osCN, bpchrarm)
- threshold
(optional) Numeric. If signatures are provided, the cut-off to use in grey-shading vs. colouring the most important components.