Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ggroc x-axis #21

Closed
adatum opened this issue Sep 18, 2017 · 3 comments
Closed

ggroc x-axis #21

adatum opened this issue Sep 18, 2017 · 3 comments

Comments

@adatum
Copy link

adatum commented Sep 18, 2017

Is there an easy way to have ggroc plot the false positive rate (1 - specificity) on the x-axis?

By default ggroc plots specificity on the reversed x-axis over [1, 0], instead of the perhaps more familiar (1-specificity) over [0, 1].

@xrobin
Copy link
Owner

xrobin commented Sep 19, 2017

This is not trivial at the moment, as you'd need to replace the data and aesthetics before changing the axis. I will consider adding an equivalent to legacy.axis in a future version.

@xrobin
Copy link
Owner

xrobin commented Sep 19, 2017

I added a legacy.axes argument to ggroc in commit baed9be. You can test it in the latest master version from github:

devtools::install_github("xrobin/pROC")
...
ggroc(rocobj, legacy.axes = TRUE)

@adatum
Copy link
Author

adatum commented Sep 20, 2017

That works perfectly. Thanks for the quick edits!

@xrobin xrobin closed this as completed Sep 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants