Description Usage Arguments Value Examples
Plots normal densities from theoretical mixture models over a histogram of observed data.
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)
|
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. |
An object of class 'ggplot'
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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.