plot_summary-method: Plotting function for 'MixtureSummary' objects

Description Usage Arguments Value Examples

Description

Plots normal densities from theoretical mixture models over a histogram of observed data.

Usage

1
2
3
4
5
6
7
plot_summary(summ, params)

## S4 method for signature 'MixtureSummary,GraphicalParameters'
plot_summary(summ, params)

## S4 method for signature 'MixtureSummary,missing'
plot_summary(summ, params)

Arguments

summ

a 'MixtureSummary' object.

params

A GraphicalParamters object. If missing, a new object will be instantiated. GraphicalParameters includes a color palette for fill and color aesthetics, which will be included via 'scale_*_manual'. Setting these palettes to NULL will cause the 'scale_*_manual' function call to be removed from the ggplot object. GraphicalParameters also includes default alpha, linetype, and size aesthetics for the geom_histogram and geom_line layers. These values may be set by vectors of length 1 or of a length equal to number of data points represented in these layers. Setting a value to NULL will cause the aesthetic to be removed from the geom_* function call.

Value

An object of class 'ggplot'

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(CNPBayes_SBP, package="MixModelViz")
sbp.summ <- summarize(CNPBayes_SBP)
sbp.summ <- addMarginalModel(sbp.summ)
plot_summary(sbp.summ)

data(CNPBayes_MBP, package="MixModelViz")
mbcnp.summ <- summarize(CNPBayes::CopyNumberModel(CNPBayes_MBP))
mbcnp.summ <- addMarginalModel(mbcnp.summ)
mbcpn.summ <- addMarginalBatch(mbcnp.summ)
plot_summary(mbcnp.summ, new("GraphicalParameters", line.size=2))

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