plotROC v2.2.1

0

Monthly downloads

0th

Percentile

Generate Useful ROC Curve Charts for Print and Interactive Use

Most ROC curve plots obscure the cutoff values and inhibit interpretation and comparison of multiple curves. This attempts to address those shortcomings by providing plotting and interactive tools. Functions are provided to generate an interactive ROC curve plot for web use, and print versions. A Shiny application implementing the functions is also included.

Readme

Build Status DOI

Generate interactive ROC plots from R using ggplot

Most ROC curve plots obscure the cutoff values and inhibit interpretation and comparison of multiple curves. This attempts to address those shortcomings by providing plotting and interactive tools. Functions are provided to generate an interactive ROC curve plot for web use, and print versions. An interacive Shiny application is also included.

Installation

This is the development version of the package. It can be installed from github with

devtools::install_github("hadley/ggplot2")
devtools::install_github("sachsmc/plotROC")

Basic usage

See examples live here

Acknowledgements

This package would not be possible without the following:

Citation

Read the code snippet article at JSS! (Coming soon)

License

The MIT License (MIT)

Copyright (c) 2017 Michael C Sachs

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Functions in plotROC

Name Description
plot_journal_roc Plot an ROC curve for use in print
multi_ggroc Plot multiple ROC curves
getD3 Reads included JavaScript functions and returns them as a string for pasting into a webpage
plotROC Tools for plotting ROC Curves
melt_roc Transform biomarkers stored as wide to long
calculate_multi_roc Calculate the Empirical ROC curves for multiple biomarkers
geom_rocci Confidence regions for the ROC curve
GeomRoc Empirical Receiver Operating Characteristic Curve
calculate_roc Calculate the Empirical ROC curve
direct_label Add direct labels to a ROC plot
ggroc Plot an ROC curve
export_interactive_roc Generate svg code for an ROC curve object
plot_interactive_roc Generate a standalone html document displaying an interactive ROC curve
calc_auc Calculate the Area under the ROC curve
shiny_plotROC Start the plotROC Shiny app
roc_key Key for ROC geom
style_roc Add guides and annotations to a ROC plot
verify_d Check that D is suitable for using as binary disease status
StatRocci Calculate confidence regions for the empirical ROC curve
StatRoc Calculate the empirical Receiver Operating Characteristic curve
No Results!

Vignettes of plotROC

Name
examples.Rmd
No Results!

Last month downloads

Details

Type Package
Date 2018-06-01
License MIT + file LICENSE
URL http://sachsmc.github.io/plotROC
BugReports http://github.com/sachsmc/plotROC/issues
VignetteBuilder knitr
RoxygenNote 6.0.1
NeedsCompilation no
Packaged 2018-06-23 07:28:03 UTC; sachsmc
Repository CRAN
Date/Publication 2018-06-23 07:52:56 UTC

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/plotROC)](http://www.rdocumentation.org/packages/plotROC)