Description Usage Arguments Value Examples
bee is a convenience wrapper for the beeswarm::beeswarm function
1 2 3 4 5 |
y |
Name of the y variable |
grouping |
Name of the grouping variable |
data |
Input dataframe where y and grouping are found |
logtransform |
Should the data be log transformed |
xlab |
X-axis Label |
ylab |
Y-axis Label |
main |
Main Title |
grouplabels |
Label for the grouping variable |
color |
Vector for the dot colors |
dotshape |
Vecor for the dot shapes |
boxplot |
Should a boxplot be plotted along with beeswarm plot? |
boxplotRange |
How long should the whiskers be? Default is 1.5 |
method |
Beeswarm plotting method. Default is 'swarm'. Options include: 'swarm', 'center', 'hex', 'square' |
corral |
Further plotting method. Default is 'wrap', Options include: 'none', 'gutter', 'wrap', 'random', 'omit' |
A beeswarm plot
1 2 3 4 5 6 7 8 9 10 11 | #dat<-data.frame(group=rep(c(1,2,3),40),x1=rnorm(120,18,5))
#names(dat)<-c("group","x1")
#bee(y="x1",
# grouping="group",
# data=dat,
# boxplot=TRUE,
# xlab="Severity",
# ylab="Score",
# main="Some Made Up Data",
# grouplabels=c("Low","Medium","High"),
# logtransform=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.