How to get separate calibration lines for different groups in a model?

I hope all is well with you. I am running a Cox regression model using the cph function in RMS with the goal of examining whether survival estimates are calibrated differently for different demographic groups. I have been looking at the RMS package and the calibrate function but I can’t see a way for using this to get separate calibration lines for different sub-groups in my model. Can anyone provide any guidance for how to do this in R?

Best, Will

Please put this post as a last reply to datamethod.org/rms which is where RMS software questions go. I’ll remove it here. Welcome to datamethods.