Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rocplot

Create ROC plot from cross validation results


Description

Create ROC plot from cross validation results

Usage

rocplot(plot_data, ...)

Arguments

plot_data

dataframe with columns: response, prediction and method

...

additional commmands plot.roc such as main

Value

returns ROC plot

Author(s)

Ben Sherwood <ben.sherwood@ku.edu>

Examples

x <- matrix(rnorm(800),ncol=8)
y <- runif(100) < exp(1 + x[,1] + x[,5])/(1+exp(1 + x[,1] + x[,5]))
cv_results <- cv(x,y=y,method_name="without_formula")
combined_data <- data.frame(y=y,x1=x[,1],x5=x[,5])
gx <- x[,c(2,3,4,6,7,8)]
cvf <- cv(genomic_x=gx,clinical_formula=y~x1+x5,
			data=combined_data,method_name="with_form")
total_results <- rbind(cv_results,cvf)
rocplot(total_results,main="rocplot test")

roccv

ROC for Cross Validation Results

v1.2
MIT + file LICENSE
Authors
Ben Sherwood [aut, cre]
Initial release
2019-05-10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.