Description Usage Arguments See Also Examples
Plot a roc.Daim
object generated by the roc
function.
1 2 3 4 5 6 7 8 9 10 | ## S3 method for class 'Daim.vector'
plot(x, color="blue", type="l", bty="n",
xlab="False positive rate", ylab="True positive rate",
main="ROC curve", ...)
## S3 method for class 'Daim.list'
plot(x, color=rgb(1,0,0,alpha=0.5),
lty=1, lwd=1, pch=19,
xlab="False positive rate", ylab="True positive rate",
main="ROC curves", legend=TRUE, ...)
|
x |
an object of class |
color |
the color used to draw the ROC curve. |
type |
what type of plot should be drawn: see
argument 'type' by the function |
bty |
the type of box to be drawn around the legend: see |
lty |
line type code: see |
lwd |
line width: see |
pch |
plotting 'character': see |
xlab |
a title for the x axis: see |
ylab |
a title for the y axis: see |
main |
a main title for the plot, see also |
legend |
should a legend be added? |
... |
graphical parameters can be given as arguments to 'plot'. |
1 2 3 4 5 6 7 8 9 10 11 | library(Daim)
data(Daim.data3)
M <- roc(Daim.data3[,2], Daim.data3[,1], "pos")
plot(M)
M <- roc(Daim.data3[,-1], Daim.data3[,1], "pos")
plot(M, color=1:4)
M <- roc(Daim.data3[,-1], Daim.data3[,1], "pos")
plot(M, color="black", lty=1:4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.