mplot3
: Variable ImportanceDraw horizontal barplots for variable importance
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,
...)
Vector, numeric: Input
Vector, numeric; length = length(x): Plot error bars with given error.
Vector, string; optional: Names of variables in x
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
Logical: If TRUE convert names(x)
using labelify. Default = TRUE
Colors: Gradient to use for barplot fill.
Float (0, 1): Alpha for col
Color: For error bars
Integer: If trace > 0
prints out the automatically set mar
(so you can adjust if needed)
names
provided
Position of bar centers (invisibly)