powered by
Plot for kernel receiver operating characteristic curve (ROC) estimate 1- to 3-dimensional data.
# S3 method for kroc plot(x, add=FALSE, add.roc.ref=FALSE, xlab, ylab, alpha=1, col=1, ...)
Plots for 1-d and 2-d are sent to graphics window. Plot for 3-d is sent to graphics/RGL window.
object of class kroc (output from kroc)
kroc
flag to add to current plot. Default is FALSE.
flag to add reference ROC curve. Default is FALSE.
x-axis label. Default is "False positive rate (bar(specificity))".
y-axis label. Default is "True positive rate (sensitivity)".
transparency value and colour of line
other graphics parameters used in plot.kde.
plot.kde
data(fgl, package="MASS") x1 <- fgl[fgl[,"type"]=="WinF",c("RI", "Na")] x2 <- fgl[fgl[,"type"]=="Head",c("RI", "Na")] Rhat <- kroc(x1=x1, x2=x2) plot(Rhat, add.roc.ref=TRUE)
Run the code above in your browser using DataLab