Plot method for 'pCure' objects
# S3 method for pCure
plot(x, part = "both", type = c("residuals", "cv", "trace"), ...)A ggplot object representing the residual plot, cross-validation plot,
or the trace plot for an object of class "pCure".
This can be further modified using "ggplot2" functions.
An object of class 'pCure', usually returned by the 'pCure()' function.
A character string specifies which component of the cure model to plot. The default is "both", which plots both the incidence and latency components if a mixture cure model was fitted, or both the long- and short-term effects if a promotion time model was fitted.
A character string specifying the type of plot to generate. Available options are "residuals," "cv," and "trace," which correspond to the pseudo-residual plot, cross-validation plot, and trace plot for different values of the tuning parameter, respectively.
Other arguments for future extension.