I am trying to make a ROC graph I am new to R so this may be an easy question but, for some reason, it won't let me create this graph and keeps saying this
Setting levels: control = 0, case = 1
Setting direction: controls < cases
Error in plot.new() : figure margins too large
I have installed the library(pROC) and have this code
probability = predict(logfit, AllTeamTotal, type = "response")
prediction[probability>0.5] = 1 table(prediction, AllTeamTotal$upset)
ROC <- roc(AllTeamTotal$upset ~ prediction, plot = TRUE, print.auc = TRUE)