plotVIRank | R Documentation |
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.
plotVIRank(
MUVRclassObject,
n,
model = "min",
cut,
maptype = c("heatmap", "dotplot"),
add_blank = 4,
cextext = 1
)
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 |
Barplot of variable rankings (lower is better)
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.