boxplot.data.frame: Boxplot Method for Data Frame

Description Usage Arguments See Also Examples

View source: R/box.R

Description

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

Usage

1
2
3
## S3 method for class 'data.frame'
boxplot(x, ..., fun = metOption("box",
  "boxplot_data_frame"), verbose = metOption("verbose_boxplot", FALSE))

Arguments

x

data.frame

...

passed to fun

fun

function that does the actual plotting

verbose

generate messages describing process

See Also

Other mixedvariate plots: boxplot_data_frame, boxplot_panel

Other boxplot: boxplot_data_frame

Other methods: axislabel.data.frame, categorical.data.frame, corsplom.data.frame, densplot.data.frame, metaplot.data.frame, pack.data.frame, plot.metaplot_gtable, print.metaplot_gtable, scatter.data.frame, unpack.data.frame

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
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,Subject,conc, gg = T)
boxplot(Theoph,conc,Subject)
boxplot(Theoph,conc,Subject, gg = T)
boxplot(Theoph,conc,Subject,site)
boxplot(Theoph,conc,Subject,site, gg = T)
boxplot(Theoph,conc,Subject,site, gg = T, scales = 'free_x')
attr(Theoph,'title') <- 'Theophylline'
boxplot(Theoph, Subject, conc, main = function(x,...)attr(x,'title'))
boxplot(Theoph, Subject, conc, main = function(x,...)attr(x,'title'), gg = T)
boxplot(Theoph, Subject, conc, sub= function(x,...)attr(x,'title'))
boxplot(Theoph, Subject, conc, sub= function(x,...)attr(x,'title'), gg = T)
boxplot(Theoph %>% filter(conc > 0),Subject,conc, log = T)
boxplot(Theoph %>% filter(conc > 0),Subject,conc, log = T, gg = T)

metaplot documentation built on May 1, 2019, 10:17 p.m.