plot.roc.Daim {Daim}R Documentation

Plotting method for roc.Daim Objects

Description

Plot a roc.Daim object generated by the roc function.

Usage

## 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), 
                xlab="False positive rate", ylab="True positive rate", 
                main="ROC curves", legend=TRUE, ...)

Arguments

x an object of class roc.Daim.
color the color used to draw the ROC curve.
type what type of plot should be drawn: see argument 'type' by the function plot.
bty the type of box to be drawn around the legend: see legend.
xlab a title for the x axis: see title.
ylab a title for the y axis: see title.
main a main title for the plot, see also title.
legend Should a legend be added?
... graphical parameters can be given as arguments to 'plot'.

See Also

Daim, roc.area.Daim

Examples

  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)


[Package Daim version 1.0.0 Index]