Plot a vector of R2

Share:

Description

Plot a vector of R2 where the first value is the main variable and the last one, if named covariates is treated as covariates.

Usage

1
2
plotLM(Rsquares, title = paste("Variance Explained in", feat_name),
  feat_name = NULL, variable_name = names(Rsquares)[1], max_columns = 6)

Arguments

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.

Value

A plot in the graphical device

Examples

1
2
3
data(mtcars)
R2 <- explainedVariance(mtcars, variable_label = "cyl") ## variable equals to cyl column
plotLM(R2)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.