plot_forest.list | R Documentation |
Run the function "plot_forest" for a list of models. More information in "?plot_forest".
plot_forest.list(
lst_models,
title = "Hazard Ratio",
cpositions = c(0.02, 0.22, 0.4),
fontsize = 0.7,
refLabel = "reference",
noDigits = 2
)
lst_models |
List of Coxmos models. |
title |
Character. Forest plot title (default: "Hazard Ratio"). |
cpositions |
Numeric vector. Relative positions of first three columns in the OX scale (default: c(0.02, 0.22, 0.4)). |
fontsize |
Numeric. Elative size of annotations in the plot (default: 0.7). |
refLabel |
Character. Label for reference levels of factor variables (default: "reference"). |
noDigits |
Numeric. Number of digits for estimates and p-values in the plot (default: 2). |
A ggplot object per model representing the forest plot. The plot visualizes the hazard ratios and their confidence intervals for each variable or component from the Coxmos model.
Pedro Salguero Garcia. Maintainer: pedsalga@upv.edu.es
data("X_proteomic")
data("Y_proteomic")
X <- X_proteomic[,1:50]
Y <- Y_proteomic
splsicox.model <- splsicox(X, Y, n.comp = 2, penalty = 0.5, x.center = TRUE, x.scale = TRUE)
splsdrcox.model <- splsdrcox_penalty(X, Y, n.comp = 2, penalty = 0.5,
x.center = TRUE, x.scale = TRUE)
lst_models = list("sPLSICOX" = splsicox.model, "sPLSDRCOX" = splsdrcox.model)
plot_forest.list(lst_models)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.