plotLM {MEAL}R Documentation

Plot a vector of R2

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

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

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

[Package MEAL version 1.10.1 Index]