Skip to content

ggrcs

Draw Histograms and Restricted Cubic Splines (RCS)

v0.4.3 · Feb 12, 2025 · GPL-3

Description

You can use this function to easily draw a combined histogram and restricted cubic spline. The function draws the graph through 'ggplot2'. RCS fitting requires the use of the rcs() function of the 'rms' package. Can fit cox regression, logistic regression. This method was described by Per Kragh (2003) <doi:10.1002/sim.1497>.

Downloads

609

Last 30 days

6489th

1.6K

Last 90 days

7.7K

Last year

Trend: +24.3% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies rms ggplot2 scales cowplot ggrcs

Version History

new 0.4.3 Mar 10, 2026
updated 0.4.3 ← 0.4.2 diff Feb 11, 2025
updated 0.4.2 ← 0.4.1 diff Sep 23, 2024
updated 0.4.1 ← 0.4.0 diff Aug 27, 2024
updated 0.4.0 ← 0.3.8 diff Jun 28, 2024
updated 0.3.8 ← 0.3.5 diff Jan 29, 2024
updated 0.3.5 ← 0.3.0 diff Nov 4, 2023
updated 0.3.0 ← 0.2.9 diff Apr 24, 2023
updated 0.2.9 ← 0.2.8 diff Apr 12, 2023
updated 0.2.8 ← 0.2.7 diff Mar 1, 2023
updated 0.2.7 ← 0.2.6 diff Dec 13, 2022
updated 0.2.6 ← 0.2.4 diff Nov 27, 2022
updated 0.2.4 ← 0.1.0 diff Sep 1, 2022
new 0.1.0 Aug 22, 2022