plot.cmfactorfit {cyclomort} | R Documentation |
Plot cmfactorfit objects
Description
Plot cmfactorfit objects
Usage
## S3 method for class 'cmfactorfit'
plot(x, fit = "both", colors = NULL, legend = TRUE, ...)
Arguments
x |
a cmfactorfit object |
fit |
a character (either "null", "alt", or "both") that dictates what fits will be plotted |
colors |
vector of colors (one component for each individual fit being plotted) for the hazard estimates |
legend |
boolean parameter dictating whether or not a legend will be added to the plot |
... |
additional parameters to pass to the |
Value
a plot comparing the hazard estimates from the null model with the individual estimates from each factor level
Examples
# fit factorial model
data(seasonalsex)
seasonalsex.factorfit <- factorfit_cyclomort(event ~ sex, data = seasonalsex, n.seasons = 1)
# summary
summary(seasonalsex.factorfit, coefs = TRUE)
plot(seasonalsex.factorfit)
[Package cyclomort version 1.0.2 Index]