Learn R Programming

rtemis (version 0.79)

mplot3.box: mplot3: Boxplot

Description

Draw boxplots

Usage

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, ...)

Arguments

x

Matrix: Each column will be drawn as a box

col

Vector of colors to use

alpha

Float: Alpha to be applied to col

border

Color for lines around boxes

xlim

Float vector, length 2: x-axis limits

ylim

Float vector, length 2: y-axis limits

xlab

String: x-axis label

xlab.line

Adjustment for the x axis label position (See codeline in ?mtext)

ylab

String: y-axis label

ylab.line

Similar to xlab.line for the y axis

main

String: Plot title

main.line

Float: mtext line argument for the title. Higher numbers move title upwards. Default = .5

main.adj

Float: Plot title alignment (0 = left, .5 = center, 1 = right)

main.col

Color for title. Defaults to black for theme "light" and "box", otherwise white

main.font

Integer: 1: regular, 2: bold, 3: italic. See par("font") for more

main.family

String: Font family to use. See par("family")

group.names

(Optional) If multiple groups are plotted, use these names if group.title = TRUE

mar

Vector, length 4: Margins; see mar in ?par

pty

"s" gives a square plot, "m" gives a plot that fills graphics device size. Defaults to "s" (See ?par)

cex

Float: Character expansion factor (See ?par)

bg

Background color. Defaults to white for themes "light" and "box", black otherwise.

y.axis.padj

Similar to x.axis.padj for the y axis

tck

Float: Tick length. Can be negative (See ?par("tck"))

theme

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')

axes.col

String: Color for axes values (box color set with box.col)

grid

Logical: Should grid be drawn?

grid.lty

Grid line type (See ?par("lty"))

grid.lwd

Grid line width

grid.col

Grid color

grid.alpha

Alpha for grid.col

...

Additional arguments to graphics::boxplot