plotVIRank: Plot variable importance ranking

View source: R/plotVIRank.R

plotVIRankR Documentation

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
)

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

Value

Barplot of variable rankings (lower is better)

Examples


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)


MUVR2 documentation built on Sept. 16, 2024, 9:06 a.m.