beeStrip: beeStrip

Description Usage Arguments Value Examples

View source: R/plotting_functions.R

Description

plots each vector in your list as a group with the data forming a histogram; draws a line at the mean for eaach group

Usage

1
2
3
4
5
6
beeStrip(data, lab = rep(c(), length(data)), point_size = 1.4,
  beeMethod = "center", line_color = "red", line_width = 3, jitter = T,
  point_col = viridis(length(data) + 2)[1:length(data)],
  y_limits = c(min(unlist(data), na.rm = T), max(unlist(data), na.rm = T)),
  median = FALSE, rug = TRUE, sample_size = T, IQR = F, side = -1,
  ...)

Arguments

data

list of groups you want to plot where length(data) = number of groups

lab

labels for each group

point_size

size of the individual data points. default is 1.4

beeMethod

see beeswarm(). default is "center"

line_color

color of line drawn at the mean for each group. default is "red"

line_width

width of the line drawn at the mean. default is 3.0

jitter

logical. should the data be jittered? defaults to TRUE

point_col

vector of colors. defaults to viridis colors

y_limits

you know this one

median

logical. should a diamond for the median be plotted?

rug

logical. should a rug plot be plotted on the right side of the plot?

sample_size

logical. should the sample size be plotted beneath each group?

IQR

logical. Should a line representing the IQR for each group be plotted?

...

other arguments to par()

Value

None

Examples

1
2
beeStrip(list(rnorm(50,50,5),rnorm(30,40,6),rnorm(10,60,2),rnorm(60,50,10),rnorm(30,39,4)),point_col=wes_palette(5, name = "Zissou"),line_color="black",median=T)
beeStrip(list(iris %>% filter(Species=="setosa") %>% .$Sepal.Length, iris %>% filter(Species=="versicolor") %>% .$Sepal.Length, iris %>% filter(Species=="virginica") %>% .$Sepal.Length),lab=c("setosa","versicolor","virginica"),ylab="sepal length",main="beeStrip()",xlab="species")

lukereding/redingPlot documentation built on May 21, 2017, 3:44 p.m.