plot.pec {pec} | R Documentation |
Ploting prediction error curves for one or more prediction models.
## S3 method for class 'pec': plot(x, what="PredErr", who, crps=FALSE, xlim=c(x$start,x$maxtime), ylim=c(0,0.3), xlab="Time", ylab, lwd.lines=2, axes=TRUE, col, lty, lines.type, smooth=FALSE, add.refline=FALSE, add=FALSE, legend=ifelse(add,FALSE,TRUE), legend.text, legend.args=list(), specials=NULL, ...)
x |
object of class pec obtained with function pec |
what |
the name of the entry in x
Defauls to PredErr
Other choices are AppErr , OutOfBagErr , NoInfErr , overfit
|
who |
Specifies models in x$models for which the prediction
error curves are drawn. Defaults to all models.
|
crps |
Logical. If TRUE
apply crps before plotting the prediction
error curve.
|
xlim |
Plotting range on the x-axis. |
ylim |
Plotting range on the y-axis |
xlab |
Label given to the x-axis. |
ylab |
Label given to the y-axis. |
lwd.lines |
Extra parameter passed to function lines . |
axes |
if FALSE no axes are drawn |
col |
vector of colors given to the curves of models in the order determined by who |
lty |
vector of lty's given to the curves of models in the order determined by who |
lines.type |
passed to lines |
smooth |
if TRUE the plotting values are smoothed with the
function smooth kind="3R" |
add.refline |
if TRUE a dotted horizontal line is drawn as a symbol for the naive rule that predicts probability .5 at all cutpoints (i.e. time points in survival analysis). |
add |
TRUE means that only lines are added to an existing device |
legend |
TRUE means draw the legend |
legend.text |
legend text in the order determined by who |
legend.args |
a list with arguments that are passed to
legend . |
specials |
Experimental |
... |
extra arguments that are passed to plot . |
Thomas Gerds tag@biostat.ku.dk