plot.Daim.roc: Plotting method for roc.Daim Objects

Description Usage Arguments See Also Examples

Description

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

Usage

 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, ...)

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.

lty

line type code: see par.

lwd

line width: see par.

pch

plotting 'character': see points.

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

 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)

Daim documentation built on May 29, 2017, 9:08 a.m.