Profile Likelihood: Plot Profiles Along with Their Parameter Paths
Source:R/plots.R
plotProfilesAndPaths.RdFor each profiled parameter, draws the profile above the paths of
plotPathsMulti(). Requires the package cowplot.
Usage
plotProfilesAndPaths(
profs,
whichPar,
nPars = 5,
ncol = 3,
normalizePaths = FALSE,
modes = c("data", "prior"),
...
)Arguments
- profs
- whichPar
Character vector, the profiled parameters to draw.
- nPars
Integer, number of colored and named paths. Defaults to 5.
- ncol
Number of columns of the plot grid. Defaults to 3.
- normalizePaths
Logical.
TRUEscales each path to a maximum absolute value of 1. Defaults toFALSE.- modes
Character vector, the contributions to the objective drawn in the profile plot besides the total. Defaults to
c("data", "prior").- ...
Further arguments passed to
cowplot::plot_grid().
Value
A ggplot object, the grid of cowplot::plot_grid().
