library(Hmisc)
require(survival)
data(pbc)
with(pbc,
rcspline.plot(age, time, model="cox",event=status %in% 1:2, nk=5, show="xbeta",
showknots=TRUE, plotcl=TRUE, lty=1)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.