plot.fbroc.perf: Plots ROC based performance metric as histogram

Description Usage Arguments Value See Also Examples

Description

Given an object of class fbroc.perf this function plots the results of the bootstrap as a histogram. The confidence interval is also included by default.

Usage

1
2
3
4
## S3 method for class 'fbroc.perf'
plot(x, bins = NULL, col = "white",
  fill = "lightblue", print.plot = TRUE, show.conf = TRUE,
  conf.text = TRUE, ...)

Arguments

x

Object of class fbroc.perf to be plotted.

bins

Number of bins for histogram. Default value depends on the number of bootstrap values and the number of unique bootstrap performance values.

col

Color of outline of histogram bars. Defaults to white.

fill

Fill of histogram bars. Defaults to lightblue.

print.plot

Logical specifying whether the plot should be printed.

show.conf

Logical specifying whether the confidence interval should be displayed.

conf.text

Logical specifying whether the confidence interval limits should also be displayed as text.

...

Further arguments passed to or from other methods.

Value

A ggplot, so that the user can customize the plot further.

See Also

perf.fbroc.roc

Examples

1
2
3
4
5
y <- rep(c(TRUE, FALSE), each = 500)
x <- rnorm(1000) + y
result.boot <- boot.roc(x, y, n.boot = 1000)
result.perf <- perf(result.boot, "auc")
plot(result.perf)

Example output

Loading required package: ggplot2

fbroc documentation built on May 2, 2019, 11:39 a.m.

Related to plot.fbroc.perf in fbroc...