bee: bee

Description Usage Arguments Value Examples

Description

bee is a convenience wrapper for the beeswarm::beeswarm function

Usage

1
2
3
4
5
bee(y, grouping = NULL, data, logtransform = FALSE, xlab = grouping,
  ylab = y, main = if (!is.null(grouping)) {     rbind(ylab, "by", xlab) }
  else {     ylab }, grouplabels = FALSE, color = 1, dotshape = 16,
  boxplot = FALSE, boxplotRange = 1.5, method = "swarm",
  corral = "wrap")

Arguments

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'

Value

A beeswarm plot

Examples

 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)

TaylorAndrew/atPlot documentation built on May 9, 2019, 4:23 p.m.