Learn R Programming

metaplot (version 0.3.2)

boxplot.data.frame: Boxplot Method for Data Frame

Description

Boxplot for data.frame. Parses arguments and generates the call: fun(x, yvar, xvar, facets, ...).

Usage

# S3 method for data.frame
boxplot(x, ..., fun = getOption("metaplot_box",
  "boxplot_data_frame"))

Arguments

x

data.frame

...

passed to fun

fun

function that does the actual plotting

See Also

Other mixedvariate plots: boxplot_data_frame

Other boxplot: boxplot_data_frame

Other metaplot: categorical, corsplom, densplot, metaplot.data.frame, metaplot, scatter

Examples

Run this code
# NOT RUN {
library(dplyr)
library(magrittr)
Theoph %<>% mutate(site = ifelse(as.numeric(Subject) > 6, 'Site A','Site B'))
boxplot(Theoph,'Subject','conc')
boxplot(Theoph,Subject,conc)
boxplot(Theoph,conc,Subject)
boxplot(Theoph,conc,Subject,site)
attr(Theoph,'title') <- 'Theophylline'
boxplot(Theoph, Subject, conc, main = function(x,...)attr(x,'title'))
boxplot(Theoph, Subject, conc, sub= function(x,...)attr(x,'title'))
# }

Run the code above in your browser using DataLab