Visualization of Spline Effects in GAM and GLM Models
Overview
Creates 'ggplot2'-based visualizations of smooth effects from GAM (Generalized Additive Models) fitted with 'mgcv' and spline effects from GLM (Generalized Linear Models). Supports survey-weighted models ('svyglm', 'svycoxph') from the 'survey' package, interaction terms, and provides hazard ratio plots with histograms for survival analysis. Wood (2017, ISBN:9781498728331) provides comprehensive methodology for generalized additive models.
New Features
- **Survey-weighted model support**: Added support for
svyglmandsvycoxphmodels from thesurveypackage svyglm: Survey-weighted GLM models (logistic, Poisson, Gaussian) withns()orbs()splinessvycoxph: Survey-weighted Cox proportional hazards models withns()orbs()splines- Uses spline-coefficient extraction approach to avoid
model.matrixcontrasts issues with survey objects - Supports both single spline terms and interaction terms (
ns(x) * group) - Survey-adjusted variance-covariance matrix (sandwich estimator) is properly used for confidence intervals
- Moved
splinesfrom Suggests to Imports for direct basis construction in survey model path
From NEWS.md in the release
Install
Health
- OK13 OK2026-10-25
- ERROR12 OK, 1 ERROR2026-10-24
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
Show 2 earlier changesHide 2 earlier changes
- NOTE12 OK, 1 NOTE2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 2
- Examples that run
- 100%2 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
Stars over time
Releases over time
9 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/jinseob2kim/splineplot on 2026-10-25.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2025-10-24 · The repository has a site deploy workflow
pkgdown site last built 2025-10-24, before release 0.3.0 (2026-03-30)
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2025-09-18Named in .Rbuildignore: .claudeCommits: at least 6 crediting it in the message
- Claude Opus 4.51 commit · Jan 2026
Dependencies
Code & Tests
People & History
Package metadata
- First published
- 2025-09-30
- Total releases
- 4 / 1 yrs
- License
- Apache License 2.0 OSI
- Download size
- 185 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("splineplot")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.