Skip to content

Commit

Permalink
ggroc expects non-transposed data (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
xrobin committed May 23, 2019
1 parent d76130d commit 24b2e61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/ggroc.R
@@ -1,7 +1,7 @@

#' Returns the coords as a data.frame in the right ordering for ggplot2
get.coords.for.ggplot <- function(roc) {
df <- as.data.frame(coords(roc, "all", transpose = TRUE), row.names = NA)
df <- as.data.frame(coords(roc, "all", transpose = FALSE), row.names = NA)
return(df[rev(seq(nrow(df))),])
}

Expand Down

0 comments on commit 24b2e61

Please sign in to comment.