View source: R/Coxmos_plot_functions.R
plot_evaluation.list | R Documentation |
Run the function "plot_evaluation" for a list of results. More information in "?plot_evaluation".
plot_evaluation.list(
lst_eval_results,
evaluation = "AUC",
pred.attr = "mean",
y.min = NULL,
type = "both",
round_times = FALSE,
decimals = 2,
title = NULL,
title_size_text = 15,
subtitle = NULL,
subtitle_size_text = 12,
legend.position = "right",
legend_title = "Method",
legend_size_text = 12,
x_axis_size_text = 10,
y_axis_size_text = 10,
label_x_axis_size = 10,
label_y_axis_size = 10,
txt.x.angle = 0
)
lst_eval_results |
List (named) of Coxmos evaluation results from |
evaluation |
Character. Perform the evaluation using the "AUC" or "IBS" metric (default: "AUC"). |
pred.attr |
Character. Way to evaluate the metric selected. Must be one of the following: "mean" or "median" (default: "mean"). |
y.min |
Numeric. Minimum Y value for establish the Y axis value. If y.min = NULL, automatic detection is performed (default: NULL). |
type |
Character. Plot type. Must be one of the following: "both", "line" or "mean". In other case, "both" will be selected (default: "both"). |
round_times |
Logical. Whether times x value should be rounded (default: FALSE). |
decimals |
Numeric. Number of decimals to use in round times. Must be a value greater or equal zero (default = 2). |
title |
Character. Plot title (default: NULL). |
title_size_text |
Numeric. Text size for title (default: 15). |
subtitle |
Character. Plot subtitle (default: NULL). |
subtitle_size_text |
Numeric. Text size for subtitle (default: 12). |
legend.position |
Character. Legend position. Must be one of the following: "top", "bottom", "right" or "left (default: "right"). |
legend_title |
Character. Legend title (default: "Method"). |
legend_size_text |
Numeric. Text size for legend title (default: 12). |
x_axis_size_text |
Numeric. Text size for x axis (default: 10). |
y_axis_size_text |
Numeric. Text size for y axis (default: 10). |
label_x_axis_size |
Numeric. Text size for x label axis (default: 10). |
label_y_axis_size |
Numeric. Text size for y label axis (default: 10). |
txt.x.angle |
Numeric. Angle of X text (default: 0). |
A list of lst_eval_results length. Each element is a list of three elements.
lst_plots
: A list of two plots. The evaluation over the time, and the extension adding the
mean or median on the right.
lst_plot_comparisons
: A list of comparative boxplots by t.test, anova, wilcoxon, kruscal.
df
: Data.frame of evaluation result.
Pedro Salguero Garcia. Maintainer: pedsalga@upv.edu.es
data("X_proteomic")
data("Y_proteomic")
set.seed(123)
index_train <- caret::createDataPartition(Y_proteomic$event, p = .5, list = FALSE, times = 1)
X_train <- X_proteomic[index_train,1:50]
Y_train <- Y_proteomic[index_train,]
X_test <- X_proteomic[-index_train,1:50]
Y_test <- Y_proteomic[-index_train,]
coxEN.model <- coxEN(X_train, Y_train, x.center = TRUE, x.scale = TRUE)
eval_results <- list()
eval_results[["cenROC"]] <- eval_Coxmos_models(lst_models = list("coxEN" = coxEN.model),
X_test = X_test, Y_test = Y_test, pred.method = "cenROC")
eval_results[["survivalROC"]] <- eval_Coxmos_models(lst_models = list("coxEN" = coxEN.model),
X_test = X_test, Y_test = Y_test, pred.method = "survivalROC")
plot_eval_results <- plot_evaluation.list(eval_results)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.