plot_density {MixtureFitting} | R Documentation |
Mixture Distribution Modeling
Description
Draw a PNG histogram with a mixture density on top of it.
Usage
plot_density( x, model, density_f, width, height,
cuts = 400, main = "",
filename = NULL,
obs_good = c(), obs_bad = c(),
scale_density = FALSE )
Arguments
x |
data vector |
cuts |
number of breaks in histogram |
main |
main title of the plot |
model |
model passed to density_f() |
density_f |
probability density function |
filename |
name of the file to write |
width |
image width, passed to png() |
height |
image height, passed to png() |
obs_good |
vector of values to mark with rug() in green color |
obs_bad |
vector of values to mark with rug() in red color |
scale_density |
should probability density be scaled? |
Author(s)
Andrius Merkys
[Package MixtureFitting version 0.6.1 Index]