Skip to contents

This function plots the mixture models for a component that is composed of gaussians. All mixture components are plotted, but those elevated for the indicated signature are shaded.
Additionally, an inlay plot is created out of the 'important' components if...

  1. Some components have been 'squashed' down

  2. There are any. - i.e. at least 1 weight > 0.05

Usage

GaussiansMixturePlot(
  signatures,
  components,
  sig_of_interest = 1,
  component = "segsize",
  inlay_flag = TRUE
)

Arguments

signatures

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

components

A list of S4 objects belonging to the class 'flexmix'.

sig_of_interest

(optional) A single integer or a vector of integers corresponding the signatures for which to make plots.
In the absence of any value passed in for this parameter, plots for just the first signature will be returned.

component

(optional) Which component to draw the gaussian curves for. (options: segsize, changepoint, copynumber)

inlay_flag

(optional) Boolean flag to turn on/off the inlay plot.

Value

A ggplot.