gratia: Graceful 'ggplot'-Based Graphics and Other Functions for GAMs Fitted Using 'mgcv'

Graceful 'ggplot'-based graphics and utility functions for working with generalized additive models (GAMs) fitted using the 'mgcv' package. Provides a reimplementation of the plot() method for GAMs that 'mgcv' provides, as well as 'tidyverse' compatible representations of estimated smooths.

Version: 0.12.1
Depends: R (≥ 4.4.0)
Imports: Rcpp, parallel, KernSmooth, mgcv (≥ 1.9-4), ggplot2 (≥ 4.0.3), tibble (≥ 3.0.0), dplyr (≥ 1.2.0), tidyr, rlang, patchwork (≥ 1.3.2), vctrs, grid, mvnfast, purrr (≥ 1.1.0), stats, grDevices, stringr, tidyselect (≥ 1.2.0), lifecycle, pillar, cli, withr, scales, utils
LinkingTo: Rcpp
Suggests: posterior, coda, bayesplot, loo, ggcube (≥ 0.3.0), geometry, qgam, tweedie (≥ 2.3.5), gamm4 (≥ 0.2-7), lme4, nlme, testthat, R6, pkgload, vdiffr, MASS, scam (≥ 1.2-21), datasets, knitr, rmarkdown, forcats, GJRM, readr, glmmTMB (≥ 1.1.15.2), sdmTMB (≥ 1.2.0), RTMB, TMB, Matrix, gamair, sf (≥ 1.0-0), marginaleffects, mirai, carrier
Published: 2026-11-23
DOI: 10.32614/CRAN.package.gratia
Author: Gavin L. Simpson ORCID iD [aut, cre, cph], Henrik Singmann ORCID iD [ctb]
Maintainer: Gavin L. Simpson <ucfagls at gmail.com>
BugReports: https://github.com/gavinsimpson/gratia/issues
License: MIT + file LICENSE
URL: https://gavinsimpson.github.io/gratia/
NeedsCompilation: yes
Language: en-GB
Citation: gratia citation info
Materials: README, NEWS
CRAN checks: gratia results

Documentation:

Reference manual: gratia.html , gratia.pdf
Vignettes: Getting started with gratia (source, R code)

Downloads:

Package source: gratia_0.12.1.tar.gz
Windows binaries: r-devel: gratia_0.11.2.zip, r-release: gratia_0.11.2.zip, r-oldrel: gratia_0.11.2.zip
macOS binaries: r-release (arm64): gratia_0.12.1.tgz, r-oldrel (arm64): gratia_0.12.1.tgz, r-release (x86_64): gratia_0.12.1.tgz, r-oldrel (x86_64): gratia_0.11.2.tgz
Old sources: gratia archive

Reverse dependencies:

Reverse imports: cgaim, galamm, gdam, smimodel
Reverse suggests: gdpar, stgam
Reverse enhances: mvgam

Linking:

Please use the canonical form https://CRAN.R-project.org/package=gratia to link to this page.