Easy Graphs for Data Visualisation and Linear Models for ANOVA
Overview
Easily explore data by plotting graphs with a few lines of code. Use these ggplot() wrappers to quickly draw graphs of scatter/dots with box-whiskers, violins or SD error bars, data distributions, before-after graphs, factorial ANOVA and more. Customise graphs in many ways, for example, by choosing from colour blind-friendly palettes (12 discreet, 3 continuous and 2 divergent palettes). Use the simple code for ANOVA as ordinary (lm()) or mixed-effects linear models (lmer()), including randomised-block or repeated-measures designs, and fit non-linear outcomes as a generalised additive model (gam) using mgcv(). Obtain estimated marginal means and perform post-hoc comparisons on fitted models (via emmeans()). Also includes small datasets for practising code and teaching basics before users move on to more complex designs. See vignettes for details on usage https://grafify.shenoylab.com/. Citation: doi:10.5281/zenodo.5136508.
This is an update with a new function plot_xy_Group, therefore the number increases to 5.1.0.
Major update
1. New function plot_xy_Group that is for data with numeric variables on both X- and Y-axes and a grouping variable, which can be either categorical or numeric. This function could replace plot_xy_CatGroup and plot_xy_NumGroup in future releases. The new feature is that now data can be summarised as mean and SD/SEM/CI95 or box and whiskers. A line joining the central value (mean or median) can also be added. Alternatively, a fitted smooth "linear" or "loess" line can be added to data. This is added via stat_smooth with lm or loess can also be added.
Minor update
1. Fixed tests to be compatible with latest release of ggplot2.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK12 OK2026-04-25
Show 1 earlier changeHide 1 earlier change
- NOTE11 OK, 3 NOTE2026-03-10
Documentation
- Help pages
- 66
- Examples that run
- 100%52 run in a plain check
- Exported functions with examples
- 90%
- Documented parameters
- 97%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 67%
- Median days to close, 50 most recently updated closed issues
- 30
- Median days to close, 50 most recently updated closed PRs
- 3
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
5 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/ashenoy-cmbi/grafify on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2025-08-25
Dependencies
Installing grafify adds 93 packages (48 with compiled code, 86 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 5.1.0Latest
- RR 4.5.0 released · 2025-04-11
- 5.0.0.12025-03-10 · diff ↗
- 5.0.02025-03-09 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 4.0.12024-02-25 · diff ↗
- 4.0
- 3.2.02023-04-30 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 3.0.1
- 3.0.02022-10-23 · diff ↗ ·
removed 2 exports
colorRampPalette_d, colorRamp_dadded 10 exports
ga_anova, ga_model, plot_befafter_box, plot_gam_predict, plot_lm_predict, plot_logscale, plot_qq_gam, table_summary, table_x_reorder, theme_grafify - 2.3.02022-05-30 · diff ↗ ·
removed 14 exports
plot_bar_sd_sc, plot_dotbar_sd_sc, plot_dotbox_sc, plot_dotviolin_sc, plot_point_sd_sc, plot_scatterbar_sd_sc, plot_scatterbox_sc, plot_scatterviolin_sc, scale_color_grafify2, scale_color_grafify_c, scale_colour_grafify2, scale_colour_grafify_c, scale_fill_grafify2, scale_fill_grafify_c - RR 4.2.0 released · 2022-04-22
- 2.2.02022-03-24 · diff ↗ ·
removed 1 export
posthoc_Trendsadded 2 exports
plot_3d_scatterviolin, plot_4d_scatterviolin - 2.1.02022-01-28 · diff ↗ ·
added 3 exports
posthoc_Trends_Levelwise, posthoc_Trends_Pairwise, posthoc_Trends_vsRef
Show 2 earlier eventsHide 2 earlier events
- 2.0.02022-01-20
- RR 4.1.0 released · 2021-05-18
Package metadata
- First published
- 2022-01-20
- Total releases
- 12 / 4 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 4.0
- Bundled data
- 24 KB / 8 files
- Download size
- 3.8 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("grafify")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-20, which the citation names so these numbers can be found later. More on citing and the projects behind them.