以下はサンプルコードです。
set.seed(2)
failure_time <- rexp(100)
status <- factor(sample(0:3, 100, replace=TRUE), 0:3,
c('no event', 'death', 'progression','other'))
disease <- factor(sample(1:6, 100,replace=TRUE), 1:6,
c('BRCA','LUNG','OV','CANCER','AIDS','HEART'))
fit <- cuminc(ftime = failure_time, fstatus = status,
group = disease)
ggcompetingrisks(fit)
Rは、3列2行で構成されたプロットを自動的に生成します。2列3行に配置してほしい。ggcompetingrisksを処理する方法はありますか、それともすべてを最初からプロットする必要がありますか?
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加