Learn R Programming

rtemis (version 0.79)

mplot3.varimp: mplot3: Variable Importance

Description

Draw horizontal barplots for variable importance

Usage

mplot3.varimp(x, error = NULL, names = NULL, names.pad = 0.02,
  plot.top = 1, labelify = TRUE, col = NULL, palette = NULL,
  alpha = 0.8, error.col = "white", error.lwd = 2, beside = TRUE,
  border = NA, width = 1, space = 0.2, xlim = NULL, ylim = NULL,
  xlab = "Variable Importance", xlab.line = 1.3, ylab = NULL,
  ylab.line = 1.5, main = NULL, main.line = 0.5, main.adj = 0,
  main.col = NULL, main.font = 2, main.family = "",
  names.arg = NULL, axisnames = FALSE, sidelabels = NULL,
  mar = NULL, pty = "m", cex = 1.2, cex.axis = cex,
  cex.names = cex, bg = NULL, plot.bg = NULL, barplot.axes = FALSE,
  xaxis = TRUE, x.axis.padj = -1.2, tck = -0.015, tick.col = NULL,
  theme = getOption("rt.theme", "light"), axes.col = NULL,
  labs.col = NULL, grid = FALSE, grid.lty = NULL, grid.lwd = NULL,
  grid.col = NULL, grid.alpha = 1, par.reset = TRUE,
  pdf.width = NULL, pdf.height = NULL, trace = 0, filename = NULL,
  ...)

Arguments

x

Vector, numeric: Input

error

Vector, numeric; length = length(x): Plot error bars with given error.

names

Vector, string; optional: Names of variables in x

plot.top

Float or Integer: If <= 1, plot this percent highest absolute values, otherwise plot this many top values. i.e.: plot.top = .2 will print the top 20 highest values

labelify

Logical: If TRUE convert names(x) using labelify. Default = TRUE

col

Colors: Gradient to use for barplot fill.

alpha

Float (0, 1): Alpha for col

error.col

Color: For error bars

trace

Integer: If trace > 0 prints out the automatically set mar (so you can adjust if needed) names provided

Value

Position of bar centers (invisibly)