0

I just plotted an ROC curve using pROC::roc as follows

plot(roc(mlabs, yhat, direction="<"), 
     col="blue", lwd=3, main = paste0("ROC Curves for Model ", mname), xlim = c(1, 0), ylim = c(0, 1))

and got a result with wide margins on either side of xlim. These make it hard to visually assess the model (i.e. the curve looks much further from top-left corner than it really is).

I don't think I've seen base graphics apply such large internal margins before. Is there any way to control it?

enter image description here

AltShift
  • 336
  • 3
  • 18
  • Can you provide a [reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) including a data by pasting the output of `dput(df)` where `df` is your data set? – hpesoj626 Mar 19 '18 at 03:53
  • This question has already been asked, and I gave two possible answers: https://stackoverflow.com/questions/42057979/proc-roc-curves-remove-empty-space – Calimo Mar 19 '18 at 07:13

0 Answers0