Draw Histograms and Restricted Cubic Splines (RCS)

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) .


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("ggrcs")

0.4.3 by Qiang LIU, 2 years ago


Browse source code at https://github.com/cran/ggrcs


Authors: Qiang LIU [aut, cre]


Documentation:   PDF Manual  


GPL-3 license


Imports rms, ggplot2, scales, cowplot

Suggests knitr, rmarkdown


See at CRAN