Skip to contents

This wrapper function (MixtureModelPlots), for an indicated CN-Signature (), returns a list of six ggplots. Each plot visualizes the mixture model used for each feature. 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

MixtureModelPlots(
  components,
  signatures = NULL,
  sig_of_interest = 1,
  threshold = 0.3
)

Arguments

components

A list of either matrices/dataframes containing the relevant distribution parameters or S4 objects belonging to the class 'flexmix'.
If providing dataframes, place parameters in rows and each component along the columns.
If gaussians, mean in row 1, and sd in row 2.

signatures

(optional) A dataframe with components along the x-axis and signatures along the y.

sig_of_interest

(optional) Integer. A single integer corresponding the column from the signatures input param.

threshold

(optional) Numeric. If signatures are provided, the cut-off to use in grey-shading vs. colouring the most important components.

Value

A list of ggplots.