Changelog
Source:NEWS.md
splineplot 0.2.1
Bug Fixes
- Fixed lines being drawn outside Y-axis limits when confidence intervals exceed ylim range
- Lines now properly stop when they go out of bounds instead of extending beyond axis limits
- Each line (main curve, lower CI, upper CI) is handled independently
- If lower CI goes below ylim, only that line is clipped while upper CI continues if still in range
- Ensures clean, professional-looking plots that respect specified axis boundaries
splineplot 0.2.0
CRAN release: 2025-10-24
Major Improvements
-
Y-axis scaling: Implemented proper ratio scale display for HR/OR/RR when
log_scale=FALSE- Shows actual ratio values (e.g., 0.5, 1, 2) instead of log values
- Automatically selects appropriate breaks based on data range
- Removes trailing zeros from labels (1.50 → 1.5)
-
X-axis improvements:
- Fixed X-axis tick visibility and direction (now properly pointing downward)
- Adjusted plot limits to ensure ticks are always visible
- Histogram alignment: Base of histogram now correctly aligns with secondary Y-axis 0%
-
Internal refactoring: Simplified data handling by always using log scale internally for ratio metrics
-
log_scaleparameter now only affects Y-axis label display - More consistent and predictable behavior
-
splineplot 0.1.1
CRAN release: 2025-09-30
Bug Fixes
- Fixed Y-axis tick marks display issue in interaction plots
- Fixed tick marks protruding from axes when histogram is shown
- Corrected secondary Y-axis scale for “Percent of Population” in interaction plots
- Fixed X-axis positioning with floating axis for histogram display
- Improved axis tick alignment for both single and interaction plots
splineplot 0.1.0
Initial Release
Major Features
- Unified interface for visualizing spline effects from GAM and GLM models
- Support for multiple model types:
- Automatic detection of:
- Model type and family
- Spline terms
- Interaction variables
- Support for various outcome types:
- Hazard Ratios (HR) for Cox models
- Odds Ratios (OR) for logistic models
- Rate Ratios (RR) for Poisson models
- Effects for linear/Gaussian models
Visualization Features
- Publication-ready ggplot2 output
- Customizable confidence intervals:
- Dotted lines (default)
- Ribbon/shaded style
- Built-in histogram showing data distribution
- Reference point marking with automatic SE = 0
- Support for interaction terms with by-variable
- Log scale option for ratio outcomes
- Customizable axis labels and limits