Description Usage Arguments Details Value Author(s) See Also Examples

A simple function to produce an ROC curve from a known edge matrix and a posterior edge probability matrix.

1 | ```
linesROC(trueMatrix, pep, col = "red", lty = 1, lwd = 1)
``` |

`trueMatrix` |
The 'true' edge matrix. |

`pep` |
A matrix of posterior edge probabilities. |

`col` |
A colour (passed to segments). |

`lty` |
A line type (passed to segments). |

`lwd` |
A line width (passed to segments). |

The area of the ROC curve is also sent to the console.

The area of the ROC curve.

Simon Spencer

1 2 3 4 5 | ```
trueMatrix<-matrix(rbinom(225,1,0.5),15,15)
pep<-matrix(runif(225,0.2,1)*trueMatrix+runif(225,0,0.5)*(1-trueMatrix),15,15)
plot(0:1, 0:1, t="l", col="grey", xlab="False positive rate",
ylab="False negative rate", main="An ROC curve.")
linesROC(trueMatrix,pep)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.