Learn R Programming

metaplot (version 0.2.7)

boxplot.data.frame: Boxplot Method for Data Frame

Description

Boxplot for data.frame. Uses nonstandard evaluation.

Usage

# S3 method for data.frame
boxplot(x, ..., log = FALSE, horizontal = NULL,
  main = FALSE, crit = 1.3, ref = NULL, nobs = FALSE, na.rm = TRUE,
  xlab = NULL, ylab = NULL, aspect = 1, fun = getOption("metaplot_box",
  "boxplot_data_frame"))

Arguments

x

data.frame

...

unquoted names of two items to plot (y , x)

log

whether to log transform numeric variable (auto-selected if NULL)

horizontal

whether box/whisker axis should be horizontal (numeric x, categorical y)

main

logical: whether to include title indicating x and y items; or a substitute title or NULL

crit

if log is NULL, log-transform if mean/median ratio for non-missing x is greater than this value

ref

optional reference line on numeric axis

nobs

whether to include the number of observations under the category label

na.rm

whether to remove data points with one or more missing coordinates

xlab

passed to bwplot

ylab

passed to bwplot

aspect

passed to bwplot

fun

function that does the actual plotting

See Also

Other bivariate functions: boxplot_data_frame

Other boxplot: boxplot.folded

Examples

Run this code
# NOT RUN {
boxplot(Theoph,'Subject','conc')
boxplot(Theoph,Subject,conc)
boxplot(Theoph,conc,Subject)
# }

Run the code above in your browser using DataLab