Usage
## S3 method for class 'npsurv':
plot(x, ...)
## S3 method for class 'idf':
plot(x, data, fn=c("surv","grad"), ...)
plotsurvidf(f, style=c("box","uniform","left","right","midpoint"),
xlab="Time", ylab="Survival Probability", col="blue3", fill=NA,
add=FALSE, lty=1, lty.inf=2, xlim, ...)
plotgradidf(f, data, w=1, col1="red3", col2="blue3",
xlab="Survival Time", ylab="Gradient", xlim, ...)
Arguments
x
an object of class npsurv
(i.e., an output of function
npsurv
) or an object of class idf
.
fn
either "surv" or "grad", to indicate plotting either the
survival or the gradient function.
style
for how to plot the survival function on a "maximal
intersection interval": = box
, plot a rectangle, which shows the uncertainty of
probability allocation within the interval;
= uniform
, treat it as a uniform di
xlab, ylab
x- or y-axis label.
add
= TRUE
, adds the curve to the existing plot; = FALSE
, plots the curve in a new one.
col
color for all line segments, including box/rectangle borders.
fill
color for filling a box/rectangle.
lty.inf
line type for the rectangle that may extend to infinity.
data
vector or matrix that stores observations, or an object of
class icendata
.
w
additional weights/multiplicities of the observations stored in
x
.
col1
color for drawing maximal intersection intervals allocated
with positive probabilities.
col2
color for drawing all gradients and the maximal
intersection intervals allocated with zero probabilities.
xlim
x-coordinate limit points.
...
arguments for other graphical parameters (see par
).