mplot3
: BoxplotDraw boxplots
mplot3.box(x, col = NULL, alpha = 0.66, border = NULL,
border.alpha = 1, space = NULL, xlim = NULL, ylim = NULL,
xlab = NULL, xlab.line = 1.5, 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, group.names = NULL, group.names.at = NULL,
group.names.y = NULL, group.names.line = 0.5, group.names.font = 1,
group.names.adj = 1, group.names.srt = 90, legend = FALSE,
legend.names = NULL, legend.position = "topright",
legend.inset = c(0, 0), mar = c(4, 2, 2.5, 0.5), pty = "m",
cex = 1.2, cex.axis = cex, cex.names = cex, bg = NULL,
plot.bg = NULL, boxplot.axes = FALSE, yaxis = TRUE, ylim.pad = 0,
y.axis.padj = 1.7, tck = -0.015, tick.col = NULL,
theme = getOption("rt.theme", "light"),
palette = getOption("rt.palette", "rtCol1"), 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 = 6,
pdf.height = 6, filename = NULL, ...)
Matrix: Each column will be drawn as a box
Vector of colors to use
Float: Alpha to be applied to col
Color for lines around boxes
Float vector, length 2: x-axis limits
Float vector, length 2: y-axis limits
String: x-axis label
Adjustment for the x axis label position (See codeline in ?mtext
)
String: y-axis label
Similar to xlab.line
for the y axis
String: Plot title
Float: mtext line
argument for the title. Higher numbers move title upwards.
Default = .5
Float: Plot title alignment (0 = left, .5 = center, 1 = right)
Color for title. Defaults to black for theme "light" and "box", otherwise white
Integer: 1: regular, 2: bold, 3: italic. See par("font")
for more
String: Font family to use. See par("family")
(Optional) If multiple groups are plotted, use these names if group.title = TRUE
Vector, length 4: Margins; see mar
in ?par
"s" gives a square plot, "m" gives a plot that fills graphics device size. Defaults to "s"
(See ?par
)
Float: Character expansion factor (See ?par
)
Background color. Defaults to white for themes "light" and "box", black otherwise.
Similar to x.axis.padj
for the y axis
Float: Tick length. Can be negative (See ?par("tck")
)
String: "light", "dark", "lightgrid", "darkgrid", "lightbox", "darkbox"
Default = "lightgrid" if no default "rt.fit"
is set using options
.
You can set a system-wide default in your .Rprofile
by including a line like
options(rt.theme = 'lightgrid')
String: Color for axes values (box color set with box.col
)
Logical: Should grid be drawn?
Grid line type (See ?par("lty")
)
Grid line width
Grid color
Alpha for grid.col
Additional arguments to graphics::boxplot