A function to produce a 2-D plot of right censored spatial survival data.
plotsurv(
spp,
ss,
maxcex = 1,
transform = identity,
background = NULL,
eventpt = 19,
eventcol = "red",
censpt = "+",
censcol = "black",
xlim = NULL,
ylim = NULL,
xlab = NULL,
ylab = NULL,
add = FALSE,
...
)
Plots the survival data non-censored observations appear as dots and censored observations as crosses. The size of the dot is proportional to the observed time.
A spatial points data frame
A Surv object (with right-censoring)
maximum size of dots default is equavalent to setting cex equal to 1
optional transformation to apply to the data, a function, for example 'sqrt'
a background object to plot default is null, which gives a blamk background note that if non-null, the parameters xlim and ylim will be derived from this object.
The type of point to illustrate events, default is 19 (see ?pch)
the colour of events, default is black
The type of point to illustrate events, default is "+" (see ?pch)
the colour of censored observations, default is red
optional x-limits of plot, default is to choose this automatically
optional y-limits of plot, default is to choose this automatically
label for x-axis
label for y-axis
logical, whether to add the survival plot on top of an existing plot, default is FALSE, which produces a plot in a new device
other arguments to pass to plot