View source: R/plot_survival_tree.R
plot_survival_tree | R Documentation |
Visualize the Fitted Survival Tree
plot_survival_tree(survival_tree, cex = 0.75)
survival_tree |
a fitted survival tree object. |
cex |
numeric character expansion factor. |
No return value, called for generating graphical outputs.
library(survival)
a_survival_tree<-
survival_tree(
survival_outcome=Surv(time,status==2)~1,
numeric_predictor=~age+ph.ecog+ph.karno+pat.karno+meal.cal,
factor_predictor=~as.factor(sex),
data=lung)
plot_survival_tree(a_survival_tree)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.