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

How to add auc.polygon in ggroc() ? #129

Open
DylanGuo1101 opened this issue Aug 9, 2024 · 2 comments
Open

How to add auc.polygon in ggroc() ? #129

DylanGuo1101 opened this issue Aug 9, 2024 · 2 comments

Comments

@DylanGuo1101
Copy link

The pROC package allowed me to plot roc curves easily and quickly, and added the ggroc() to be able to modify figures more easily.

But is it possible to plot roc curves with polygon using the ggroc() ? Like the plot.roc(auc.polygon = T).

@xrobin
Copy link
Owner

xrobin commented Aug 10, 2024

I guess that would be fairly easy to implement.

@xrobin
Copy link
Owner

xrobin commented Aug 11, 2024

I added an experimental geom_polygon_auc function:

data(aSAH)
roc.s100b <- roc(aSAH$outcome, aSAH$s100b)
ggroc(roc.s100b) + geom_polygon_auc(roc.s100b$auc)

It's not as easy, as the polygon appears in front of the ROC curve. I need to think how to work around that - suggestions welcome.

xrobin added a commit that referenced this issue Aug 11, 2024
xrobin added a commit that referenced this issue Aug 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants