create.boxplot.from.summary: Create a boxplot from summarized data.

Description Usage Arguments Author(s) Examples

View source: R/create.boxplot.from.summary.R

Description

Create a boxplot from a dataframe that provides summary statistics.

Usage

1
create.boxplot.from.summary(data = NULL, x = NULL, min, max, upper, lower, middle, xlab = NULL, ylab = NULL, theme = NULL, filename = NULL, resolution = 1600)

Arguments

data

Dataframe containing data to plot

x

The dat column inside the dataframe to plot on the x-axis.

min

Minimum value for the yaxis, this will be plotted as the minimum whisker value

max

Maximum value for the yaxis, this will be plotted as the maximum whisker value

upper

Third quartile value

lower

First quartile value

middle

Median value

xlab

x-axis label

ylab

y-axis label

theme

Theme function

filename

Filename for the plot, if left blank the plot will be shown on STDOUT

resolution

resolution for the plot

Author(s)

Richard de Borja <richard.deborja@sickkids.ca>

Examples

1
2
3
abc <- adply(matrix(rnorm(100), ncol = 5), 2, quantile, c(0, .25, .5, .75, 1))
colnames(abc) <- c('sample', 'min', 'first_quartile', 'median', 'third_quartile', 'max')
create.boxplot.from.summary(data = abc, x = 'sample', min = 'min', lower = 'first_quartile', middle = 'median', upper = 'third_quartile', max = 'max')

rdeborja/plotting.general documentation built on May 27, 2019, 3:05 a.m.