summarizeTheoretical-method: Create a plottable summary of the theoretical mixture model.

Description Usage Arguments Value

Description

This function retrieves the theoretical distribution from a ‘MixtureModel' object and generates density points over the range of x values given in the model’s observed data. Suitable for plotting as a line. Y values have been scaled to fit the histogram over the range of the observed data when split using 'nBins(MixtureSummary.obj)'.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
summarizeTheoretical(model, obs.df)

## S4 method for signature 'MixtureModel,data.frame'
summarizeTheoretical(model, obs.df)

## S4 method for signature 'SingleBatchCopyNumber,data.frame'
summarizeTheoretical(model, obs.df)

## S4 method for signature 'MultiBatchCopyNumber,data.frame'
summarizeTheoretical(model, obs.df)

## S4 method for signature 'MultiBatchCopyNumberPooled,data.frame'
summarizeTheoretical(model,
  obs.df)

Arguments

model

A 'MixtureModel' object

obs.df

data.frame of observed values generated by 'getObserved(model)'. Column names must include those returned by 'ObservedNames(model)'.

Value

A data.frame containing the varibles described by 'TheoreticalNames(model)' for each of the observed distributions.


rscharpf/MixModelViz documentation built on May 29, 2019, 8:55 a.m.