Skip to contents

This function plots the mixture models for a component that is composed of poisson distributions. All mixture components are plotted, but those elevated for the specified signature are shaded.

Usage

PoissonsMixturePlot(
  signatures,
  components,
  sig_of_interest = 1,
  component = "bp10MB"
)

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 poisson 'curves' for. (options: bp10MB, osCN, bpchrarm)

Value

A ggplot.