h <- 500
w <- 1000
grid.step <- 50
plot( c(0,w), c(0,h),
xaxs = "i",yaxs = "i",
xaxt = 'n', yaxt = 'n',
type = "n",
xlab = "Negatives", ylab = "Positives")
x <- c(0, 100, 200, 1000)
y <- c(0, 200, 300, 500)
axis(2,y,labels=c('0','TP1','TP2','Pos'))
axis(1,x,labels=c('0','FP1','FP2','Neg'))
gx <- grid.step
while (gx <= w) {
abline(v = gx, col="gray", lty="dotted")
gx <- gx + grid.step
}
gy <- grid.step
while (gy <= h) {
abline(h = gy, col="gray", lty="dotted")
gy <- gy + grid.step
}
for (i in 2:3) {
abline(v=x[i],lty='dashed')
abline(h=y[i],lty='dashed')
}
lines( x, y, lty=1, type='o')