Learn R Programming

MUVR2 (version 0.1.0)

plotVIRank: Plot variable importance ranking

Description

Plot variable importance ranking in MUVR object. Regardless of MV core method, variables are sorted by rank, where lower is better. `plotVIRank` produces boxplots of variable rankings for all model repetitions.

Usage

plotVIRank(
  MUVRclassObject,
  n,
  model = "min",
  cut,
  maptype = c("heatmap", "dotplot"),
  add_blank = 4,
  cextext = 1
)

Value

Barplot of variable rankings (lower is better)

Arguments

MUVRclassObject

An MUVR class object only applied to PLS, RF not rdCVnet

n

Number of top ranking variables to plot (defaults to those selected by MUVR2)

model

Which model to choose ('min', 'mid' (default) or 'max')

cut

Optional value to cut length of variable names to `cut` number of characters

maptype

for rdCvnet dot plot or heat map

add_blank

put more blank when the rownames is too long,

cextext

the cex of the text

Examples

Run this code
# \donttest{
data("freelive2")
nRep <- 2
nOuter <- 4
varRatio <-0.6
regrModel <- MUVR2(X = XRVIP2,
                   Y = YR2,
                   nRep = nRep,
                  nOuter = nOuter,
                   varRatio = varRatio,
                   method = "PLS",
                   modReturn = TRUE)
plotVIRank(regrModel, n=20)
# }

Run the code above in your browser using DataLab