An R package for easy graphs, ANOVAs and post-hoc comparisons

What can grafify do?

It makes easier for new (or advanced) users of R do the following:

  1. plot great-looking graphs quickly (with 19 plot_ functions)
  2. apply colour blind-friendly palettes to graphs (with 4 scale_colour_grafify and scale_fill_grafify functions)
  3. perform ANOVAs, including randomised block and repeated-measures designs (simple_ and mixed_ functions)
  4. get post-hoc comparisons (with 3 posthoc_ functions)
  5. generate ANOVA design data (with 4 functions)
  6. practice R with built-in datasets (7 data_ tables)

Latest version: v1.5.0 released 4 Dec 2021

See Updates for latest releases and bug-fixes. If you use grafify, please cite using the following DOI from Zenodo DOI

Shenoy, A. R. (2021) grafify: an R package for easy graphs, ANOVAs and post-hoc comparisons (Version v1.4.1). Zenodo.

Installation & getting started

Install the remotes package first if you don’t already have it, so you can install grafify from GitHub. Then install the latest release of grafify from GitHub as follows:

install.packages("remotes") #install remotes

#install latest release

In my experience, I could avoid errors during installation if RStudio prompts to update other packages by skipping that step (blank line or none). Install grafify and then update any other packages as necessary.

Note that the following packages are also required for grafify to work: ggplot2, lmerTest, emmeans, car, pbkrtest, purrr, Hmisc, tidyr.

Colour Palettes

Eight colour blind-friendly palettes are available for categorical variables. Colour schemes are implemented from excellent blogs by Paul Tol and Okabe-Ito scheme (also see Mike Mol’s blog).

One colour scheme is available for quantitative data. These are compatible with ggplot2 and added to graphs generated using grafify or native ggplot calls.

Basic biological statistics

Also visit the companion website on Statistics for Mico/Immuno Biologists which describes statistical tests and using base R functions to execute them (e.g. with lme4, emmeans, ggplot2).

grafify hexsticker