Learn R Programming

PWFSLSmoke (version 1.0.16)

skill_ROCPlot: ROC Plot

Description

This function plots ROC curves for a variety of observed classification thresholds.

Usage

skill_ROCPlot(predicted, observed, t1Range = c(0, 100), t2s = seq(10, 100,
  10), n = 101, colors = grDevices::rainbow(length(t2s)))

Arguments

predicted

vector of predicted values (or a ws_monitor object with a single location)

observed

vector of observed values (or a ws_monitor object with a single location)

t1Range

lo and high values used to generate test thresholds for classifying predicted data

t2s

vector of thresholds used to classify observed data

n

number of test thresholds in ROC curve

colors

vector of colors used when plotting curves

References

Receiver Operating Characteristic

See Also

skill_confusionMatrix

skill_ROC

Examples

Run this code
# NOT RUN {
# Spokane summer of 2015
airnow <- airnow_load(20150701,20150930)
airnow <- monitor_rollingMean(airnow, width=3)
MonroeSt <- monitor_subset(airnow, monitorIDs="530630047_01")
EBroadway <- monitor_subset(airnow, monitorIDs="530639997_01")
skill_ROCPlot(EBroadway, MonroeSt)
# }

Run the code above in your browser using DataLab