Learn R Programming

testCompareR (version 1.1.0)

plot.compareR: Plot a compareR object

Description

An S3 method to plot a simple visualisation of the results from the compareR function.

Usage

# S3 method for compareR
plot(x, ...)

Value

A visualisation of the results for diagnostic accuracies and predictive values from the compareR output.

Arguments

x

An object of class compareR.

...

Arguments such as graphical parameters. Not currently in use.

Details

Method to plot the most commonly used results of the compareR output.

Examples

Run this code
# generate result
res <- compareR(cass, test1 = "exercise", test2 = "cp",
                gold = "angio",
                test.names = c("ExerciseStressTest", "ChestPain"))

# run print method
plot(res)

Run the code above in your browser using DataLab