plot_components {lgpr} | R Documentation |
Visualize all model components
Description
This calls plot_f
for all model components.
Usage
plot_components(
fit,
pred = NULL,
group_by = "id",
t_name = "age",
MULT_STD = 2,
verbose = TRUE,
draws = NULL,
reduce = function(x) base::mean(x),
color_by = NA,
no_err = FALSE,
ylim = NULL,
draw = TRUE,
nrow = NULL,
ncol = NULL,
gg_add = NULL,
x = NULL,
...
)
Arguments
fit |
An object of class lgpfit. |
pred |
An object of class GaussianPrediction or
Prediction. If |
group_by |
name of the grouping variable (use |
t_name |
name of the x-axis variable |
MULT_STD |
a multiplier for standard deviation |
verbose |
Can this print any messages? |
draws |
Only has effect if |
reduce |
Only has effect if |
color_by |
Names of coloring factors. Can have length 1 or equal to
the number of components. See the |
no_err |
Should the error ribbons be skipped even though they
otherwise would be shown? Can have length 1 or equal to number of
components + 1. See the |
ylim |
a vector of length 2 (upper and lower y-axis limits), or NULL |
draw |
if this is TRUE, the plot grid is drawn using
|
nrow |
number of grid rows |
ncol |
number of grid columns |
gg_add |
additional ggplot obejct to add to each plot |
x |
Deprecated argument. This is now taken from the |
... |
additional arguments to |
Value
a list of ggplot objects invisibly
See Also
Other main plot functions:
plot_draws()
,
plot_pred()