[R] calibrate.cph plots

David Winsemius dwinsemius at comcast.net
Wed Sep 7 00:11:41 CEST 2011

On Sep 6, 2011, at 5:16 PM, Salvo Mac wrote:

> Hi!
> How can I exclude the legends from calibration plots
> generated by calibrate.cph

You may be confused. `calibrate.cph` does not do plotting. There is a  
`plot.calibrate` function and a `plot.calibrate.default` function.  
Looking at the code you can see that the legend= argument is checked  
before the legend is created by `plot.calibrate.default`.

  plot(cal, legend=FALSE)

# which works for calibrate on an lrm model.
# But ... there are no legends in plot.calibrate done on cph fits.

So do you mean the subtitles? If so, then this works:

  plot(cal, subtitles=FALSE)

> regards,
> Salvo
> 	[[alternative HTML version deleted]]
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

David Winsemius, MD
West Hartford, CT

More information about the R-help mailing list