Generate Predicted vs Observed Plots
plotPredVsObs.RdThis function is a wrapper for plotYVsX with adjusted input parameters.
The following parameters are fixed:
residualScaleis fixed to NULL,observedDataDirectionis fixed to 'x'
For details and examples, see the vignettes:
vignette("Goodness of fit", package = "ospsuite.plots")vignette("ospsuite.plots", package = "ospsuite.plots")
Usage
plotPredVsObs(
data = NULL,
mapping = NULL,
xyscale = AxisScales$log,
comparisonLineVector = getFoldDistanceList(c(1.5, 2)),
asSquarePlot = TRUE,
...
)Arguments
- data
A
data.framecontaining the data to plot.- mapping
A list of aesthetic mappings to use for the plot.
- xyscale
Either "linear" or "log" scale for the X and Y axes.
- comparisonLineVector
A vector defining the comparison lines.
- asSquarePlot
A boolean; if true, the plot is returned as a square plot with aspect ratio = 1 and fixed ratios.
- ...
Arguments passed on to
plotYVsXgeomComparisonLineAttributesA
listof arguments passed toggplot2::hlineorggplot2::ablineto display comparison lines.geomGuestLineAttributesA
listof arguments passed toggplot2::geom_functionto display guest criteria.residualScaleEither "linear", "log", or "ratio" scale for residuals.
yDisplayAsAbsoluteA boolean that defines the direction of comparison lines.
addRegressionA boolean that activates the insertion of a regression line.
addGuestLimitsA boolean that activates the insertion of guest limits.
deltaGuestNumeric value parameter for the Guest function.
labelGuestCriteriaLabel used in the legend for guest criteria (default: "guest criteria").
observedDataDirectionEither 'x' or 'y', defining the direction of observed data.
groupAestheticsA character vector of aesthetic names used for grouping data points when calculating comparison statistics. Data will be grouped by combinations of these aesthetics before computing counts and proportions within comparison lines. Common grouping aesthetics include
"colour","fill","shape".metaDataA named list of information about
datasuch as thedimensionandunitof its variables.geomPointAttributesA
listwith arguments which are passed on to the callggplot2::geom_pointgeomErrorbarAttributesA
listwith arguments which are passed on to the callggplot2::geom_errorbargeomLLOQAttributesA
listwith arguments which are passed on to the callggplot2::geom_hlinexscaleeither 'linear' then
ggplot2::scale_x_continuous()or 'log' thenggplot2::scale_x_log10()is usedxscale.argslist of arguments passed to
ggplot2::scale_x_continuous()orggplot2::scale_x_log10()yscaleeither 'linear' then
ggplot2::scale_y_continuous()or 'log' thenggplot2::scale_y_log10()is usedyscale.argslist of arguments passed to
ggplot2::scale_y_continuous()orggplot2::scale_y_log10()
See also
Other plot functions:
plotBoxWhisker(),
plotForest(),
plotHistogram(),
plotQQ(),
plotRangeDistribution(),
plotRatioVsCov(),
plotResVsCov(),
plotTimeProfile(),
plotYVsX()