Package: gratia 0.11.2-73

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.

Authors:Gavin L. Simpson [aut, cre, cph], Henrik Singmann [ctb]

gratia_0.11.2-73.tar.gz
gratia_0.11.2-73.zip(r-4.7-x86_64)gratia_0.11.2-73.zip(r-4.7-arm64)gratia_0.11.2-73.zip(r-4.6-x86_64)gratia_0.11.2-73.zip(r-4.6-arm64)gratia_0.11.2-73.zip(r-4.5-x86_64)
gratia_0.11.2-73.tgz(r-4.6-x86_64)gratia_0.11.2-73.tgz(r-4.6-arm64)gratia_0.11.2-73.tgz(r-4.5-x86_64)gratia_0.11.2-73.tgz(r-4.5-arm64)
gratia_0.11.2-73.tar.gz(r-4.7-arm64)gratia_0.11.2-73.tar.gz(r-4.7-x86_64)gratia_0.11.2-73.tar.gz(r-4.6-arm64)gratia_0.11.2-73.tar.gz(r-4.6-x86_64)
gratia_0.11.2-73.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
gratia/json (API)

# Install 'gratia' in R:
install.packages('gratia', repos = c('https://gavinsimpson.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/gavinsimpson/gratia/issues

Pkgdown/docs site:https://gavinsimpson.github.io

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
Datasets:
  • bird_move - Simulated bird migration data
  • gss_vocab - Data from the General Social Survey (GSS) from the National Opinion Research Center of the University of Chicago
  • ref_sims - Reference simulation data
  • smallAges - Lead-210 age-depth measurements for Small Water
  • zooplankton - Madison lakes zooplankton data

On CRAN:

Conda:

distributional-regressiongamgammgeneralized-additive-mixed-modelsgeneralized-additive-modelsggplot2glmlmmgcvpenalized-splinerandom-effectssmoothingsplinesopenblascpp

13.52 score 233 stars 6 packages 2.5k scripts 3.8k downloads 11 mentions 154 exports 39 dependencies

Last updated from:0b3434e0de. Checks:14 OK, 1 ERROR. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK641
linux-devel-x86_64OK786
source / vignettesOK643
linux-release-arm64OK890
linux-release-x86_64OK651
macos-release-arm64OK713
macos-release-x86_64OK1127
macos-oldrel-arm64ERROR643
macos-oldrel-x86_64OK1040
windows-devel-arm64OK954
windows-devel-x86_64OK970
windows-release-arm64OK994
windows-release-x86_64OK1141
windows-oldrel-x86_64OK587
wasm-releaseOK278

Exports:add_confintadd_constantadd_fittedadd_fitted_samplesadd_partial_residualsadd_posterior_samplesadd_predicted_samplesadd_residualsadd_sizeradd_smooth_samplesaleall_levelsappraiseas_mcmc_drawsassemblebasisbasis_sizeboundaryby_levelby_variablecheck_is_mgcv_smoothcompare_smoothsconcrvityconditional_differencesconditional_momentsconditional_valuesdata_combosdata_simdata_slicederivative_samplesderivativesdharma_residualsdifference_smoothsdispersiondrawdraw_label_controledfeval_smoothevaluate_parametric_termevaluate_smoothevenlyextract_linkfactor_combosfamily_namefamily_parametersfamily_typefderivfitted_momentsfitted_samplesfitted_valuesfix_offsetfixed_effectsgaussian_drawsgenerate_drawsget_by_smoothget_smoothget_smooths_by_idget_vcovgratia_palettegratia_theme_getgratia_theme_setgratia_theme_updategw_f0gw_f1gw_f2gw_f3has_thetain_shape_setinv_linkis_by_smoothis_continuous_by_smoothis_factor_by_smoothis_factor_termis_mgcv_familyis_mgcv_smoothis_mrf_smoothis_multivariate_yis_offsetlevellinkload_mgcvlog_liklp_matrixmh_drawsmodel_concurvitymodel_constantmodel_edfmodel_termsmodel_varsn_etan_smoothsnb_thetanull_devianceobserved_fitted_plotoverviewparametric_effectsparametric_termspartial_derivativespartial_residualspenaltypost_drawsposterior_predictive_plotposterior_samplespredicted_samplesqq_plotquantile_residualsrandom_effect_samplesref_levelresidual_correlationresidual_correlation_plotresiduals_covariate_plotresiduals_hist_plotresiduals_linpred_plotresponse_derivativesrootogramrtwsampling_diagnosticsscalable_observed_fitted_plotscalable_qq_plotscalable_residuals_covariate_plotscalable_residuals_hist_plotscalable_residuals_linpred_plotscalable_worm_plotscale_fill_partial_effectshape_confidence_setshape_intervalssmooth_coef_indicessmooth_coefssmooth_datasmooth_dimsmooth_estimatessmooth_labelsmooth_samplessmooth_termssmooth_typesmoothsspline_valuesspline_values2stop_if_not_mgcv_smoothsurrogate_residualsterm_namesterm_variablesthetatidy_basisto_natoo_fartoo_far_to_natransform_funtypical_valuesuser_drawsvariance_compvars_from_labelwhich_smoothsworm_plot

Dependencies:BHclicpp11dplyrfarvergenericsggplot2gluegtableisobandKernSmoothlabelinglatticelifecyclemagrittrMatrixmgcvmvnfastnlmepatchworkpillarpkgconfigpurrrR6RColorBrewerRcppRcppArmadillorlangS7scalesstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithr

Functions of covariates and evaluation environments
Raw data and smooth coordinates | Choosing the plotted covariate scale | Local functions | Which derivative? | Choosing a finite-difference step

Last update: 2026-10-24
Started: 2026-09-21

Getting started with gratia
Plotting | Model diagnostics | Want to learn more? | References

Last update: 2026-10-24
Started: 2022-02-06

Migrating posterior sampling calls
Draw counts and evaluation points | Multiple chains and parallel work | Reusing coefficient draws | Which response sampling function to use | Likelihoods and external diagnostic wrappers | Location-scale-shape models | Grouped response families | Censoring and survival responses | Distribution parameters and expected responses | Location, rate and expectation

Last update: 2026-10-24
Started: 2026-10-16

Readme and manuals

Help Manual

Help pageTopics
Add a confidence interval to an existing objectadd_confint add_confint.default add_confint.parametric_effects add_confint.smooth_estimates
Add a constant to estimated valuesadd_constant add_constant.evaluated_parametric_term add_constant.mgcv_smooth add_constant.parametric_effects add_constant.smooth_estimates add_constant.smooth_samples add_constant.tbl_df
Add fitted values from a model to a data frameadd_fitted add_fitted.gamm4 add_fitted.scam
Add posterior draws from a model to a data objectadd_fitted_samples add_posterior_samples add_predicted_samples add_smooth_samples
Add fitted values from a GAM to a data frameadd_fitted.gam
Add partial residualsadd_partial_residuals add_partial_residuals.gam add_partial_residuals.gamm4 add_partial_residuals.scam
Add residuals from a model to a data frameadd_residuals add_residuals.gamm4 add_residuals.scam
Add residuals from a GAM to a data frameadd_residuals.gam
Add indicators of significant change after SiZeRadd_sizer add_sizer.derivatives add_sizer.smooth_estimates
Accumulated local effects of a model covariateale ale.bam ale.default ale.gam ale.scam
Model diagnostic plotsappraise appraise.default appraise.gam appraise.gamlss appraise.gamm appraise.gamm4 appraise.gjrm appraise.gratia_diagnostic_proxy appraise.lm appraise.lme appraise.merMod appraise.sdmTMB
Convert posterior samples for MCMC diagnosticsas_mcmc_draws
Prepare plots via 'ggplot2' and assembles them as a listassemble assemble.gamm4
Plot smooth and parametric terms from a fitted GAMassemble.gam assemble.gamm assemble.scam
Basis expansions for smoothsbasis basis.default basis.gam basis.gamm basis.gamm4 basis.scam
Extract basis dimension of a smoothbasis_size basis_size.gam basis_size.gamm basis_size.gamm4 basis_size.mgcv.smooth basis_size.scam
Simulated bird migration databird_move
Extract the boundary of a soap film smoothboundary boundary.gam boundary.gamm4 boundary.soap.film
Select smooths based on user's choicescheck_user_select_smooths
Extract coefficients from a fitted 'scam' model.coef.scam
Compare smooths across modelscompare_smooths
Conditional differences of fitted values from a GAMconditional_differences conditional_differences.gam conditional_differences.gamm4 conditional_differences.scam
Conditional moments of a GAM response distributionconditional_moments conditional_moments.gam
Conditional predictions from a GAMconditional_values conditional_values.gam conditional_values.gamm4 conditional_values.scam
Point-wise and simultaneous confidence intervals for derivatives of smoothsconfint.fderiv
Point-wise and simultaneous confidence intervals for smoothsconfint.gam confint.gamm confint.gamm4 confint.scam
All combinations of factor levels plus typical values of continuous variablesdata_combos data_combos.gam data_combos.gamm4
Simulate example data for fitting GAMsdata_sim
Generating responses with mgcv family objectsdata_sim_families
Reference functions for shape-constrained GAMsdata_sim_shapes
Prepare a data slice through model covariatesdata_slice data_slice.data.frame data_slice.default data_slice.gam data_slice.gamm data_slice.gamm4 data_slice.scam
Posterior expectations of derivatives from an estimated modelderivative_samples derivative_samples.default derivative_samples.gam derivative_samples.gamm derivative_samples.gamm4 derivative_samples.scam
Derivatives of estimated smooths via finite differencesderivatives derivatives.default derivatives.gam derivatives.gamm derivatives.gamm4 derivatives.scam
Simulation-based PIT residualsdharma_residuals
Model diagnostic support and conventionsdiagnostic_support
Differences of factor smooth interactionsdifference_smooths difference_smooths.gam difference_smooths.scam
Dispersion parameter for fitted modeldispersion dispersion.gam dispersion.gamm4 dispersion.glm dispersion.scam
Generic plotting via 'ggplot2'draw
Control label layout in gratia plotsdraw_label_control
Plot accumulated local effectsdraw.ale
Plot basis functionsdraw.basis
Plot comparisons of smoothsdraw.compare_smooths
Plot conditional differencesdraw.conditional_differences
Draw conditional response momentsdraw.conditional_moments
Plot conditional predictionsdraw.conditional_values
Plot derivatives of smoothsdraw.derivatives draw.partial_derivatives
Plot differences of smoothsdraw.difference_smooth
Plot estimated parametric effectsdraw.evaluated_parametric_term
Plot smooth and parametric terms from a fitted GAMdraw.gam draw.gamm draw.scam draw.scasm
Plot smooths of models estimated by GJRMassemble.gamlss assemble.gjrm draw.gamlss draw.gjrm
Plot basis functionsdraw.mgcv_smooth
Plot concurvity measuresdraw.overall_concurvity draw.pairwise_concurvity
Plot estimated effects for model parametric termsdraw.parametric_effects
Display penalty matrices of smooths using 'ggplot'draw.penalty_df
Draw a rootogramdraw.rootogram
Plot coefficient-chain diagnosticsdraw.sampling_diagnostics
Plot the result of a call to 'smooth_estimates()'draw.smooth_estimates
Plot posterior smoothsdraw.smooth_samples
Plot variance components and proportions of term variancedraw.variance_comp
Effective degrees of freedom for smooths and GAMsedf edf.gam edf.gamm4 edf.scam model_edf
S3 methods to evaluate individual smoothseval_smooth eval_smooth.fs.interaction eval_smooth.mgcv.smooth eval_smooth.mrf.smooth eval_smooth.random.effect eval_smooth.scam_smooth eval_smooth.soap.film eval_smooth.sz.interaction eval_smooth.t2.smooth eval_smooth.tensor.smooth
Evaluate parametric model termsevaluate_parametric_term evaluate_parametric_term.gam evaluate_parametric_term.gamm4
Evaluate a smoothevaluate_smooth
Create a sequence of evenly-spaced valuesall_levels evenly seq_min_max
All combinations of factor levelsfactor_combos factor_combos.gam factor_combos.gamm4
Extend diagnostics for an mgcv-compatible familyfamily_diagnostics
Name of family used to fit modelfamily_name
Describe a model family's distribution parametersfamily_parameters
Extracts the type of family in a consistent wayfamily_type family_type.default family_type.family
Extract family objects from modelsfamily.bam family.gam family.gamm family.gamm4
Estimate moments of the conditional response distributionfitted_moments fitted_moments.gam
Draw fitted values from the posterior distributionfitted_samples fitted_samples.gam fitted_samples.gamm4 fitted_samples.scam
Generate fitted values from a estimated GAMfitted_values fitted_values.gam fitted_values.gamm fitted_values.gamm4 fitted_values.scam
Fix the names of a data frame containing an offset variable.fix_offset
Extract fixed effects estimates from a fitted modelfixed_effects fixed_effects.default fixed_effects.gam fixed_effects.gamm fixed_effects.gamm4 fixed_effects.glm fixed_effects.lm fixed_effects.scam
Support for models fitted by gamm4gamm4_support
Posterior samples using a Gaussian approximationgaussian_draws gaussian_draws.gam gaussian_draws.gamm4 gaussian_draws.scam
Extract an factor-by smooth by nameget_by_smooth
Extract an mgcv smooth by nameget_smooth
Extract an mgcv smooth given its position in the model objectget_smooths_by_id get_smooths_by_id.gam get_smooths_by_id.gamm get_smooths_by_id.gamm4 get_smooths_by_id.scam
Extract the covariance matrix of the model parameters or a subset of these for a particular model termget_vcov get_vcov.scam
Discrete palettes for gratia plotsgratia_palette
Native themes for gratia plotsgratia_theme_get gratia_theme_set gratia_theme_update
Data from the General Social Survey (GSS) from the National Opinion Research Center of the University of Chicagogss_vocab
Gu and Wahba test functionsgw_f0 gw_f1 gw_f2 gw_f3 gw_functions
Are additional parameters available for a GAM?has_theta
Tests for by variable smoothsby_level by_variable is_by_smooth is_continuous_by_smooth is_factor_by_smooth
Is a model term a factor (categorical)?is_factor_term is_factor_term.bam is_factor_term.gam is_factor_term.gamm is_factor_term.gamm4 is_factor_term.list is_factor_term.terms
Is an object one of mgcv's family objects?is_mgcv_family
Check if objects are smooths or are a particular type of smoothcheck_is_mgcv_smooth is_mgcv_smooth is_mrf_smooth stop_if_not_mgcv_smooth
Is a model multivariate?is_multivariate_y
Is a model term an offset?is_offset
Extract link and inverse link functions from modelsextract_link extract_link.family extract_link.general.family inv_link inv_link.bam inv_link.family inv_link.gam inv_link.gamm inv_link.gamm4 inv_link.glm link link.bam link.family link.gam link.gamm link.gamm4 link.glm
Load mgcv quietlyload_mgcv
Posterior draws of pointwise log likelihoodslog_lik log_lik.bam log_lik.gam log_lik.scam
Leave-one-out validation and WAIC for GAMsloo.bam loo.gam loo.scam waic.bam waic.gam waic.scam
Return the linear prediction matrix of a fitted GAMlp_matrix lp_matrix.gam lp_matrix.gamm4 lp_matrix.scam model.matrix.scam
Posterior samples using Metropolis Hastingsmh_draws mh_draws.gam mh_draws.gamm4 mh_draws.scam
Concurvity of an estimated GAMconcrvity model_concurvity model_concurvity.gam model_concurvity.gamm4 model_concurvity.scam
Extract the model constant termmodel_constant model_constant.gam model_constant.gamlss model_constant.gamm4 model_constant.glm model_constant.scam
Find the names of model termsmodel_terms model_terms.gam model_terms.gamm model_terms.gamm4 model_terms.lm model_terms.scam
List the variables involved in a model fitted with a formulamodel_vars model_vars.bam model_vars.default model_vars.gam model_vars.gamm model_vars.gamm4 model_vars.scam
The Number of linear predictors in modeln_eta n_eta.gam n_eta.gamm4 n_eta.scam
How many smooths in a fitted modeln_smooths n_smooths.bam n_smooths.default n_smooths.gam n_smooths.gamm n_smooths.gamm4 n_smooths.gjrm n_smooths.glmmTMB
Negative binomial parameter thetanb_theta nb_theta.gam nb_theta.gamm4
Extract the null deviance of a fitted modelnull_deviance null_deviance.default
Plot of fitted against observed response valuesobserved_fitted_plot
Provides an overview of a model and the terms in that modeloverview overview.gam overview.gamm4 overview.scam
Estimated values for parametric model termsparametric_effects parametric_effects.gam parametric_effects.gamm4 parametric_effects.scam
Names of any parametric terms in a GAMparametric_terms parametric_terms.default parametric_terms.gam parametric_terms.gamm4 parametric_terms.scam
Partial derivatives of estimated multivariate smooths via finite differencespartial_derivatives partial_derivatives.default partial_derivatives.gam partial_derivatives.gamm partial_derivatives.gamm4 partial_derivatives.scam
Partial residualspartial_residuals partial_residuals.gam partial_residuals.scam
Extract and tidy penalty matricespenalty penalty.default penalty.gam penalty.gamm4 penalty.mgcv.smooth penalty.re.smooth.spec penalty.scam penalty.t2.smooth penalty.tensor.smooth
Low-level Functions to generate draws from the posterior distribution of model coefficientsgenerate_draws generate_draws.gam generate_draws.gamm4 generate_draws.scam post_draws post_draws.default post_draws.gamm4
Posterior predictive check of the response distributionposterior_predictive_plot
Draw samples from the posterior distribution of an estimated modelposterior_samples posterior_samples.gam posterior_samples.gamlss posterior_samples.gamm posterior_samples.gamm4 posterior_samples.glm posterior_samples.glmmTMB posterior_samples.lm posterior_samples.lme posterior_samples.merMod posterior_samples.scam posterior_samples.sdmTMB
Posterior checks with bayesplotpp_check pp_check.bam pp_check.gam pp_check.gamm pp_check.gamm4 pp_check.scam
Draw new response values from the conditional distribution of the responsepredicted_samples predicted_samples.default predicted_samples.gam predicted_samples.gamm4 predicted_samples.scam
Quantile-quantile plot of model residualsqq_plot qq_plot.default qq_plot.gam qq_plot.gamlss qq_plot.gamm qq_plot.gamm4 qq_plot.gjrm qq_plot.glm qq_plot.gratia_diagnostic_proxy qq_plot.lm qq_plot.lme qq_plot.merMod qq_plot.sdmTMB
Effects and diagnostics for glmmTMB modelsappraise.glmmTMB assemble.glmmTMB draw.glmmTMB get_smooths_by_id.glmmTMB glmmTMB-methods parametric_effects.glmmTMB parametric_terms.glmmTMB qq_plot.glmmTMB smooths.glmmTMB smooth_coefs.glmmTMB smooth_estimates.glmmTMB worm_plot.glmmTMB
PIT and randomised quantile residualsquantile_residuals quantile_residuals.default quantile_residuals.gam quantile_residuals.gamlss quantile_residuals.gamm quantile_residuals.gamm4 quantile_residuals.gjrm quantile_residuals.glm quantile_residuals.glmmTMB quantile_residuals.gratia_diagnostic_proxy quantile_residuals.gratia_glmmtmb_diagnostic quantile_residuals.lm quantile_residuals.lme quantile_residuals.merMod quantile_residuals.sdmTMB
Draw new random effects from an estimated GAMrandom_effect_samples
Return the reference or specific level of a factorlevel ref_level
Reference simulation dataref_sims
Repeat the first level of a factor n timesrep_first_factor_value
Ordered residual correlation diagnosticsresidual_correlation residual_correlation_plot
Plot residuals against covariatesresiduals_covariate_plot scalable_residuals_covariate_plot
Histogram of model residualsresiduals_hist_plot
Plot of residuals versus linear predictor valuesresiduals_linpred_plot
Derivatives on the response scale from an estimated GAMresponse_derivatives response_derivatives.default response_derivatives.gam response_derivatives.gamm response_derivatives.gamm4 response_derivatives.scam
Rootograms to assess goodness of model fitrootogram rootogram.gam rootogram.gamm4 rootogram.scam
Simulator for tweedie LSS modelsrtw
Extract coefficient-sampler diagnosticsprint.sampling_diagnostics sampling_diagnostics
Scalable model diagnostic plotsscalable_observed_fitted_plot scalable_qq_plot scalable_residuals_hist_plot scalable_residuals_linpred_plot scalable_worm_plot
Default diverging red-blue colour palette for partial effectsscale_fill_partial_effect
Formula effects for sdmTMB modelsassemble.sdmTMB draw.sdmTMB get_smooths_by_id.sdmTMB n_smooths.sdmTMB parametric_effects.sdmTMB parametric_terms.sdmTMB sdmTMB-methods smooths.sdmTMB smooth_coefs.sdmTMB smooth_estimates.sdmTMB
Create a sequence of evenly-spaced values adjusted to accommodate a small adjustmentseq_min_max_eps
Intersect a band with linear restrictions on coefficientsin_shape_set shape_confidence_set
Enforce named shapes on estimates and interval endpointsshape_intervals
Shift numeric values in a data frame by an amount 'eps'shift_values
Simulate responses from a fitted modelsimulate simulate.gam simulate.gamlss simulate.gamm simulate.gamm4 simulate.scam
Simultaneous bands on an evaluation grid or a continuous intervalsimultaneous_bands
Lead-210 age-depth measurements for Small WatersmallAges
Indices of the parametric terms for a particular smoothsmooth_coef_indices
Coefficients for a particular smoothsmooth_coefs smooth_coefs.bam smooth_coefs.gam smooth_coefs.gamm smooth_coefs.gamm4 smooth_coefs.mgcv.smooth smooth_coefs.scam
Generate regular data over the covariates of a smoothsmooth_data
Dimension of a smoothsmooth_dim smooth_dim.gam smooth_dim.gamm smooth_dim.gamm4 smooth_dim.mgcv.smooth
Evaluate smooths at covariate valuessmooth_estimates smooth_estimates.gam smooth_estimates.gamlss smooth_estimates.gjrm
Extract the label for a smooth used by 'mgcv'smooth_label smooth_label.gam smooth_label.gamm4 smooth_label.mgcv.smooth
Posterior draws for individual smoothssmooth_samples smooth_samples.gam smooth_samples.gamm4
List the variables involved in smoothssmooth_terms smooth_terms.gamm4 smooth_terms.scam
Determine the type of smooth and return it in a human readable formsmooth_type smooth_type.Bspline.smooth smooth_type.cpopspline.smooth smooth_type.cpspline.smooth smooth_type.cr.smooth smooth_type.cs.smooth smooth_type.cv.smooth smooth_type.cvBy.smooth smooth_type.cx.smooth smooth_type.cxBy.smooth smooth_type.cyclic.smooth smooth_type.default smooth_type.dpo.smooth smooth_type.duchon.spline smooth_type.fs.interaction smooth_type.gp.smooth smooth_type.ipo.smooth smooth_type.lipl.smooth smooth_type.lmpi.smooth smooth_type.mdcv.smooth smooth_type.mdcvBy.smooth smooth_type.mdcx.smooth smooth_type.mdcxBy.smooth smooth_type.micv.smooth smooth_type.micvBy.smooth smooth_type.micx.smooth smooth_type.micxBy.smooth smooth_type.mifo.smooth smooth_type.miso.smooth smooth_type.mpd.smooth smooth_type.mpdBy.smooth smooth_type.mpi.smooth smooth_type.mpiBy.smooth smooth_type.mrf.smooth smooth_type.po.smooth smooth_type.pspline.smooth smooth_type.random.effect smooth_type.sf.film smooth_type.sf.wiggly smooth_type.soap.film smooth_type.sos.smooth smooth_type.sz.interaction smooth_type.t2.smooth smooth_type.tecvcv.smooth smooth_type.tecxcv.smooth smooth_type.tecxcx.smooth smooth_type.tedecv.smooth smooth_type.tedecx.smooth smooth_type.tedi.smooth smooth_type.tedmd.smooth smooth_type.tedmi.smooth smooth_type.teid.smooth smooth_type.temicv.smooth smooth_type.temicx.smooth smooth_type.tensor.smooth smooth_type.tescv.smooth smooth_type.tescx.smooth smooth_type.tesmd1.smooth smooth_type.tesmd2.smooth smooth_type.tesmi1.smooth smooth_type.tesmi2.smooth smooth_type.tismd.smooth smooth_type.tismi.smooth smooth_type.tprs.smooth smooth_type.ts.smooth
Names of smooths in a GAMsmooths smooths.default smooths.gamlss smooths.gamm smooths.gamm4 smooths.gjrm
Evaluate a spline at provided covariate valuesspline_values
Surrogate residuals for categorical GAMssurrogate_residuals surrogate_residuals.default surrogate_residuals.gam
Extract names of all variables needed to fit a GAM or a smoothterm_names term_names.gam term_names.gamm term_names.gamm4 term_names.mgcv.smooth term_names.scam
Names of variables involved in a specified model termterm_variables term_variables.bam term_variables.gam term_variables.gamm4 term_variables.scam term_variables.terms
General extractor for additional parameters in mgcv modelstheta theta.family theta.gam theta.gamm4
A tidy basis representation of a smooth objecttidy_basis
Sets the elements of vector to 'NA'to_na
Exclude values that lie too far from the support of datatoo_far
Set rows of data to 'NA' if the lie too far from a reference set of valuestoo_far_to_na
Transform estimated values and confidence intervals by applying a functiontransform_fun transform_fun.evaluated_parametric_term transform_fun.mgcv_smooth transform_fun.parametric_effects transform_fun.smooth_estimates transform_fun.smooth_samples transform_fun.tbl_df
Typical values of model covariatestypical_values typical_values.data.frame typical_values.gam typical_values.gamm4
Handle user-supplied posterior drawsuser_draws user_draws.gam user_draws.gamm4 user_draws.scam
Variance components and fitted term variances for GAMsvariance_comp variance_comp.gam variance_comp.gamm variance_comp.gamm4 variance_comp.scam
Returns names of variables from a smooth labelvars_from_label
Identify a smooth term by its labelwhich_smooths which_smooths.bam which_smooths.default which_smooths.gam which_smooths.gamm which_smooths.gamm4 which_smooths.scam
Worm plot of model residualsworm_plot worm_plot.gam worm_plot.gamlss worm_plot.gamm worm_plot.gamm4 worm_plot.gjrm worm_plot.glm worm_plot.gratia_diagnostic_proxy worm_plot.lm worm_plot.lme worm_plot.merMod worm_plot.sdmTMB
Madison lakes zooplankton datazooplankton