| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/zzz.R |
| 3 |
\docType{data} |
| 4 |
\name{ROCR.simple} |
| 5 |
\alias{ROCR.simple} |
| 6 |
\title{Data set: Simple artificial prediction data for use with ROCR} |
| 7 |
\format{ |
| 8 |
A two element list. The first element, \code{ROCR.simple$predictions}, is a |
| 9 |
vector of numerical predictions. The second element, |
| 10 |
\code{ROCR.simple$labels}, is a vector of corresponding class labels. |
| 11 |
} |
| 12 |
\usage{ |
| 13 |
data(ROCR.simple) |
| 14 |
} |
| 15 |
\description{ |
| 16 |
A mock data set containing a simple set of predictions and corresponding |
| 17 |
class labels. |
| 18 |
} |
| 19 |
\examples{ |
| 20 |
# plot a ROC curve for a single prediction run |
| 21 |
# and color the curve according to cutoff. |
| 22 |
library(ROCR) |
| 23 |
data(ROCR.simple) |
| 24 |
pred <- prediction(ROCR.simple$predictions, ROCR.simple$labels) |
| 25 |
pred |
| 26 |
perf <- performance(pred,"tpr","fpr") |
| 27 |
perf |
| 28 |
plot(perf,colorize=TRUE) |
| 29 |
} |
| 30 |
\keyword{datasets} |