Description Usage Arguments Author(s) Examples
View source: R/create.boxplot.from.summary.R
Create a boxplot from a dataframe that provides summary statistics.
1 |
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 |
Richard de Borja <richard.deborja@sickkids.ca>
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')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.