Plot a ROC

Share:

Description

This functions uses the results of generate.roc to plot a ROC plot

Usage

1
2
3
roc.plot(pows, legend = NULL, cols = colorRampPalette(c("blue", "gray"))(dim(pows)[3]), 
	mains = c("Linear", "Quadratic", "Cubic", "Sine:period 1/2", 
		"Sine: period 1/8", "X^(1/4)", "Circle", "Step function", "Torus"))

Arguments

pows

array, as returned by generate.roc

legend

NULL (default) to disable legend or a matrix with noise levels as used in run.tests

cols

colours to use for the plots

mains

main title for each plot

Value

This function is used solely for its side effect of plotting

Author(s)

Sebastian D├╝mcke duemcke@mpipz.mpg.de

See Also

run.tests

Examples

1
2
3
4
mycor = function(...) cor(...)^2
noises = cbind(lin=c(.1,.5,.8),circ=c(.2,.4,.6))
results.cor= run.tests(mycor,args=list(),types=c(1,7),noises=noises,nsim=100,size=50)
roc.plot(generate.roc(results.cor,pval=FALSE),legend=noises)