plotLM {MEAL} | R Documentation |
Plot a vector of R2 where the first value is the main variable and the last one, if named covariates is treated as covariates.
plotLM(Rsquares, title = paste("Variance Explained in", feat_name), feat_name = NULL, variable_name = names(Rsquares)[1], max_columns = 6)
Rsquares |
Numerical vector of R2 |
title |
Character with the plot title |
feat_name |
Name of the feature used in default title. |
variable_name |
Character for the first column name |
max_columns |
Numerical with the maximum number of columns to be plotted. |
A plot in the graphical device
data(mtcars) R2 <- explainedVariance(mtcars, variable_label = "cyl") ## variable equals to cyl column plotLM(R2)