Description Usage Arguments Details Value Author(s) Examples
Map survival data
1 | survmap(spp, ss)
|
spp |
a spatial points data frame |
ss |
a Surv object |
Produce a map of survival times showing censoring
a ggplot object
Barry S Rowlingson
1 2 3 4 5 6 7 8 9 10 11 | require(sp)
require(survival)
d = data.frame(
x=runif(40)*1.5,
y = runif(40),
age=as.integer(20+30*runif(40)),
sex = sample(c("M","F"),40,TRUE)
)
coordinates(d)=~x+y
d$surv = Surv(as.integer(5+20*runif(40)),runif(40)>.9)
survmap(d, d$surv)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.