View source: R/MixtureFitting.R
plot_density | R Documentation |
Draw a PNG histogram with a mixture density on top of it.
plot_density( x, model, density_f, width, height,
cuts = 400, main = "",
filename = NULL,
obs_good = c(), obs_bad = c(),
scale_density = FALSE )
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? |
Andrius Merkys
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.