This function is called by plot.brokenstick
. Normally we wouldn't
call plot_trajectory()
directly.
plot_trajectory(
x,
data,
color_y = c(grDevices::hcl(240, 100, 40, 0.7), grDevices::hcl(240, 100, 40, 0.8)),
size_y = 2,
color_yhat = c(grDevices::hcl(0, 100, 40, 0.7), grDevices::hcl(0, 100, 40, 0.8)),
size_yhat = 2,
color_imp = c("grey80", "grey80"),
size_imp = 2,
ncol = 3L,
xlab = NULL,
ylab = NULL,
xlim = NULL,
ylim = NULL,
scales = "fixed",
theme = ggplot2::theme_light()
)
An object of class brokenstick
.
A data.frame
with columns names x$names
, ".source"
and ".pred"
, and possibly ".imp"
A character vector with two elements specifying the symbol and line color of the measured data points
Dot size of measured data points
A character vector with two elements specifying the symbol and line color of the predicted data points
Dot size of predicted data points
A character vector with two elements specifying the symbol and line color of the imputed data
Dot size of imputed data
Number of columns in plot
The label of the x-axis
The label of the y-axis
Vector of length 2 with range of x-axis
Vector of length 2 with range of y-axis
Axis scaling, e.g. "fixed"
, "free"
, and so on
Plotting theme
An object of class ggplot