ggplot-based Graphics and Other Useful Functions for GAMs Fitted Using mgcv

appraise | Model diagnostic plots |

coef.scam | Extract coefficients from a fitted 'scam' model. |

confint.fderiv | Point-wise and simultaneous confidence intervals for... |

confint.gam | Point-wise and simultaneous confidence intervals for smooths |

data_class | Vectorized version of 'data.class' |

datagen | Generate data over the range of variables used in smooths |

data_slice | Prepare a data slice through covariates |

derivatives | Derivatives of estimated smooths via finite differences |

draw | Generic plotting via 'ggplot2' |

draw.derivatives | Plot derivatives of smooths |

draw.evaluated_smooth | Plot estimated smooths |

draw.gam | Plot estimated smooths from a fitted GAM |

evaluate_smooth | Evaluate a smooth |

factor_var_names | Names of any factor variables in model data |

fderiv | First derivatives of fitted GAM functions |

fix_offset | Fix the names of a data frame containing an offset variable. |

get_by_smooth | Extract an factor-by smooth by name |

get_smooth | Extract an mgcv smooth by name |

get_smooths_by_id | Extract an mgcv smooth given its position in the model object |

is_by_smooth | Tests for by variable smooths |

is_factor_var | Are variables in a data frame factors? |

is_mgcv_smooth | Check if objects are smooths or are a particular type of... |

is_offset | Is a model term an offset? |

n_smooths | How many smooths in a fitted model |

observed_fitted_plot | Plot of fitted against observed response values |

parametric_terms | Names of any parametrix terms in a GAM |

qq_plot | Quantile-quantile plot of model residuals |

rep_first_factor_value | Repeat the first level of a factor n times |

residuals_hist_plot | Histogram of model residuals |

residuals_linpred_plot | Plot of residuals versus linear predictor values |

seq_min_max | Create a sequence of evenly-spaced values |

shift_values | Shift numeric values in a data frame by an amount 'eps' |

simulate | Simulate from the posterior distribution of a GAM |

smallAges | Lead-210 age-depth measurements for Small Water |

smooth_dim | Dimension of a smooth |

smooths | Names of smooths in a GAM |

which_smooths | Identify a smooth term by it's label |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.