plotratetable | R Documentation |
Function makes plot(s) from ratetable
plotratetable(rt, RR = FALSE)
rt |
Rate table produced by function mkratetable |
RR |
Boolean, if TRUE rate ratios plotted |
ggplot object, or list if multiple variables in rate table
library(ggplot2) library(survival) tmp.lt1<-mkratetable(Surv(time,status)~ ph.ecog,data=lung,add.RR = FALSE) plotratetable(tmp.lt1) tmp.lt2<-mkratetable(Surv(time,status)~ sex+ph.ecog+cut(age,4),data=lung,add.RR=TRUE,lowest.N=1) plotratetable(tmp.lt2,TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.