View source: R/Plotting_with_ggplot.R
| plotPredVsObs | R Documentation |
Compares observed and predicted histograms (e.g. from
WH.regression.two.components.predict), one panel for each
individual.
plotPredVsObs(PRED, OBS, type = "HISTO", ncolu = 2)
PRED |
A |
OBS |
A |
type |
The type of plot: |
ncolu |
The number of columns of panels (default 2). |
The plot is drawn on the current device and the ggplot object
is returned invisibly.
plot_errors
pars <- WH.regression.two.components(BLOOD, Yvar = 1, Xvars = c(2:3))
PRED <- WH.regression.two.components.predict(data = BLOOD[, 2:3], parameters = pars)
OBS <- BLOOD[, 1]
plotPredVsObs(PRED, OBS, "HISTO")
plotPredVsObs(PRED, OBS, "CDF")
plotPredVsObs(PRED, OBS, "DENS")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.