Description Usage Arguments Examples
Fancy boxplot via ggplot2.
1 |
data |
See example for data format. |
... |
Additional params passed |
1 2 3 4 5 6 7 8 9 10 | ## source('../data/ggboxplot_data.RData')
data('ggboxplot_data')
#library(reshape2) # if required load it
## use with reshape2::melt to reshape data
ggplot(aes(y = Value, x = Gene, fill = Group), data = data) + geom_boxplot(outlier.shape = NA) + ylab("ylab") + coord_flip() + scale_color_brewer("Set2")
colnames(data) = c('G1','G2','Value')
ggboxplot(data)
ggboxplot(data,horizontal=TRUE,size=0.1,outlier.shape=NA)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.