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 06 Mar. 2026.
Previous versions and publish date:
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

r2resize  
In-Text Resize for Images, Tables and Fancy Resize Containers in 'shiny', 'rmarkdown' and 'quarto' Documents
Automatic resizing toolbar for containers, images and tables. Various resizable or expandable contai ...
Download / Learn more Package Citations See dependency  
openxlsx  
Read, Write and Edit xlsx Files
Simplifies the creation of Excel .xlsx files by providing a high level interface to writing, stylin ...
Download / Learn more Package Citations See dependency  
mlr3viz  
Visualizations for 'mlr3'
Visualization package of the 'mlr3' ecosystem. It features plots for mlr3 objects such as tasks, le ...
Download / Learn more Package Citations See dependency  
DatabionicSwarm  
Swarm Intelligence for Self-Organized Clustering
Algorithms implementing populations of agents that interact with one another and sense their environ ...
Download / Learn more Package Citations See dependency  
EMVS  
The Expectation-Maximization Approach to Bayesian Variable Selection
An efficient expectation-maximization algorithm for fitting Bayesian spike-and-slab regularization p ...
Download / Learn more Package Citations See dependency  
lbfgs  
Limited-memory BFGS Optimization
A wrapper built around the libLBFGS optimization library by Naoaki Okazaki. The lbfgs package implem ...
Download / Learn more Package Citations See dependency  

26,264

R Packages

223,360

Dependencies

70,244

Author Associations

26,265

Publication Badges

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