Other packages > Find by keyword >

gratia  

Graceful 'ggplot'-Based Graphics and Other Functions for GAMs Fitted Using 'mgcv'
View on CRAN: Click here


Download and install gratia package within the R console
Install from CRAN:
install.packages("gratia")

Install from Github:
library("remotes")
install_github("cran/gratia")

Install by package version:
library("remotes")
install_version("gratia", "0.11.1")



Attach the package and use:
library("gratia")
Maintained by
Gavin L. Simpson
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2019-02-01
Latest Update: 2024-12-19
Description:
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.
How to cite:
Gavin L. Simpson (2019). gratia: Graceful 'ggplot'-Based Graphics and Other Functions for GAMs Fitted Using 'mgcv'. R package version 0.11.1, https://cran.r-project.org/web/packages/gratia. Accessed 15 Jul. 2026.
Previous versions and publish date:
(2026-07-09 07:45), 0.2-1 (2019-02-01 19:33), 0.2-8 (2019-03-13 00:00), 0.3.0 (2020-01-19 21:20), 0.3.1 (2020-03-29 20:30), 0.4.1 (2020-05-31 02:00), 0.5.0 (2021-01-11 00:20), 0.5.1 (2021-01-24 01:20), 0.6.0 (2021-04-18 06:50), 0.7.0 (2022-02-07 16:20), 0.7.2 (2022-03-17 22:10), 0.7.3 (2022-05-09 13:20), 0.8.1 (2023-02-02 17:50), 0.8.2 (2024-01-09 10:10), 0.9.0 (2024-03-27 18:40), 0.9.2 (2024-06-25 19:00), 0.10.0 (2024-12-19 20:10), 0.11.0 (2025-08-18 12:40), 0.11.1 (2025-08-25 13:10)
Other packages that cited gratia R package
View gratia citation profile
Other R packages that gratia depends, imports, suggests or enhances
Complete documentation for gratia
Functions, R codes and Examples using the gratia R package
Some associated functions: add_confint . add_constant . add_fitted.gam . add_fitted . add_partial_residuals . add_residuals.gam . add_residuals . appraise . basis . bird_move . check_user_select_smooths . coef.scam . compare_smooths . confint.fderiv . confint.gam . data_combos . data_sim . data_slice . datagen . derivatives . difference_smooths . draw.basis . draw.compare_smooths . draw.derivatives . draw.difference_smooth . draw.evaluated_smooth . draw.gam . draw.gamlss . draw.mgcv_smooth . draw . draw.parametric_effects . draw.penalty_df . draw.rootogram . draw.smooth_estimates . draw.smooth_samples . draw_parametric_effect . edf . eval_smooth . evaluate_parametric_term . evaluate_smooth . evenly . factor_combos . family.gam . family_name . family_type . fderiv . fitted_samples . fitted_values . fix_offset . fixef.gam . fixef . get_by_smooth . get_smooth . get_smooths_by_id . gss_vocab . gw_functions . has_theta . is_by_smooth . is_factor_term . is_mgcv_smooth . is_offset . link . load_mgcv . lp_matrix . model_concurvity . model_vars . n_smooths . nb_theta . nested_partial_residuals . nested_rug_values . observed_fitted_plot . overview . parametric_effects . parametric_terms . partial_derivatives . partial_residuals . penalty . posterior_samples . predicted_samples . qq_plot . ref_level . ref_sims . rep_first_factor_value . residuals_hist_plot . residuals_linpred_plot . rootogram . seq_min_max_eps . shift_values . simulate . smallAges . smooth_coef_indices . smooth_coefs . smooth_data . smooth_dim . smooth_estimates . smooth_samples . smooth_type . smooths . term_names . term_variables . theta . tidy_basis . to_na . too_far . too_far_to_na . transform_fun . typical_values . variance_comp . vars_from_label . which_smooths . worm_plot . zooplankton . 
Some associated R codes: add-methods.R . basis-funs.R . by-variable-utilities.R . compare-smooths.R . concurvity.R . confint-methods.R . data-sim.R . data-slice.R . datagen-methods.R . datasets.R . derivatives.R . diagnose.R . difference-smooths.R . distribution-helpers.R . draw-evaluate-smooth.R . draw-gam.R . draw-methods.R . edf.R . effects.R . evaluate_smooth.R . evenly.R . family-utils.R . fderiv.R . fitted_values.R . gjrm-methods.R . lp-matrix.R . nested-functions.R . other-scam-methods.R . overview.R . parametric-effects.R . penalty.R . posterior-samples.R . residuals.R . rootogram.R . simulate-methods.R . smooth-coefs.R . smooth-data.R . smooth-estimates.R . smooth-type.R . subsetting.R . too_far.R . utililties.R . variance-components.R .  Full gratia package functions and examples
Downloads during the last 30 days

Today's Hot Picks in Authors and Packages

pulseTD  
Identification of Transcriptional Dynamics using Pulse Models via 4su-Seq Data and RNA-Seq Data
A tool for analyzing the transcription, processing and degradation rates of genes by 4sU-seq (the Me ...
Download / Learn more Package Citations See dependency  
PermAlgo  
Permutational Algorithm to Simulate Survival Data
This version of the permutational algorithm generates a dataset in which event and censoring times ...
Download / Learn more Package Citations See dependency  
gscaLCA  
Generalized Structure Component Analysis- Latent Class Analysis & Latent Class Regression
Execute Latent Class Analysis (LCA) and Latent Class Regression (LCR) by using Generalized Structu ...
Download / Learn more Package Citations See dependency  
gamlss.add  
Extra Additive Terms for Generalized Additive Models for Location Scale and Shape
Interface for extra smooth functions including tensor products, neural networks and decision trees. ...
Download / Learn more Package Citations See dependency  
binhf  
Haar-Fisz Functions for Binomial Data
Binomial Haar-Fisz transforms for Gaussianization as in Nunes and Nason (2009). ...
Download / Learn more Package Citations See dependency  
footBayes  
Fitting Bayesian and MLE Football Models
This is the first package allowing for the estimation, visualization and prediction of the most wel ...
Download / Learn more Package Citations See dependency  

27,806

R Packages

239,283

Dependencies

73,837

Author Associations

27,807

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA