roc_plot: Plot Data Generated by mcguiR::ROC_value()

Description Usage Arguments Value Examples

Description

Plot Data Generated by mcguiR::ROC_value()

Usage

1
ROC_plot(ROC_data, method = "loess", title = "")

Arguments

ROC_data

data frame generated by ROC_value()

method

method for geom_smooth to use ("lm", "glm", "gam", "loess") - "loess" is default

title

character vector containing preferred title (If left empty, blank)

Value

plot with FPR on the x axis and TPR on the y axis

Examples

1
2
3
4
5
6
7
## Not run: 
iris2 <- iris[stringr::str_detect(Species, "setosa", negate = T), ]
irismodel <- glm(Species ~ ., data = iris2, family = binomial)
roc_value <- ROC_value(irismodel, iris2, iris2$Species, "virginica",
"versicolor")
ROC_plot(roc_value, title = "This Plot ROCs")
## End(Not run)

bmcguir8/mcguiR documentation built on Jan. 7, 2021, 8:40 p.m.