Description Usage Arguments See Also Examples
Plotting functions for hazard rates, survival times and cluster profiles.
1 2 3 4 5 6 7 8 | plot.hazard (x, gr.subset, var.subset, group = TRUE, xlim = NA, ylim = NA, xlab = "Survival Time", ylab = "Hazard Function",
main = "Hazard Functions", type = "l", lty = 1, lwd = 1, col = NA, legpos = "right", ...)
plot.survival (x, gr.subset, var.subset, group = TRUE, xlim = NA, ylim = NA, xlab = "Survival Time", ylab = "Survival Function",
main = "Survival Functions", type = "l", lty = 1, lwd = 1, col = NA, legpos = "right", ...)
plot.profile (x, method = "mean", type = "b", pch = 19, lty = 1, lwd = 1, col = NA,
xlab = "Variables", leglab = NA, ylab = NA, main = NA, legpos = "topright", ...)
|
x |
object of class |
gr.subset |
Optional vector for plotting subset of clusters |
var.subset |
Optional vector for plotting subset of variables |
group |
if |
method |
|
xlim |
limits for x-axis |
ylim |
limits for y-axis |
xlab |
label for x-axis |
ylab |
label for y-axis |
main |
title of the plot |
leglab |
label for the legend |
type |
type of plot |
lty |
line type |
lwd |
line width |
pch |
type of plotting points |
col |
colors; if |
legpos |
position of the legend; |
... |
Additional plot options |
1 2 3 4 5 6 7 8 9 10 11 12 | ##Plots for mixture Weibull model with 3 components
data(webshop)
res <- phmclust(webshop, 3)
##Hazard plot for first and third group, all pages
plot.hazard(res, gr.subset = c(1,3), group = TRUE, xlab = "Dwell-Time")
##Survival plot for each group, first 6 pages
plot.survival(res, var.subset= 1:6, group = FALSE, xlab = "Dwell-Time")
##Cluster profile plot
plot.profile(res, xlab = "Pages", ylab = "Mean Dwell-Time", main = "Cluster Profile")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.