legend.position: Character. Legend position. Must be one of the following: "top", "bottom", "right" or "left (default: "bottom").
auto.limits: Logical. If "auto.limits" = TRUE, limits are detected automatically (default: TRUE).
top: Numeric. Show "top" first variables. If top = NULL, all variables are shown (default: NULL).
Returns
A ggplot object visualizing the linear predictors for multiple patients based on the provided Coxmos model.
Details
The function plot_multipleObservations.LP is designed to visualize the linear predictors for multiple patients based on the provided Coxmos model. The function takes into account various parameters to customize the visualization, such as the significance level, error bars, and the number of top variables to display.
The function works by first checking the class of the provided model. Depending on the model type, it delegates the plotting task to one of the three methods: classical models, PLS models, or multi-block PLS models. Each of these methods is tailored to handle specific model types and produce the desired plots.