cats_meow: plot quantitative x categorical data various ways

Description Usage Arguments Value Examples

View source: R/plotting_functions.R

Description

boxplot + mean with fences for CIs or s.e.m.s + data jittered

Usage

1
2
cats_meow(y, x = NA, lab = NA, SEM = FALSE, CI = TRUE,
  box_thickness = 0.2, plot_data = T, colors = viridis(5)[1:4], ...)

Arguments

y

either a list of the data you wish to plot, where length(data) == # of groups, or a column of a dataframe containing y axis values

x

NA if y is a list. Otherwise a column in a dataframe containing the group labels for each observation in y

lab

labels for groups

SEM

draw s.e.m.'s as fences? defaults to FALSE

CI

draw 95 percent CIs as fences? defaults to TRUE

box_thickness

thickness of the boxes of your boxplots

plot_data

logical. plot the data jittered alongside the boxplot? Defaults to TRUE

colors

colors of the data points. defaults to viridis colors

...

other arguments to pass to par()

Value

none

Examples

1
data(iris); cats_meow(iris$Sepal.Length,iris$Species, ylab="sepal length", xlab = "species")

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