I want to cycle compare several logistic regression models. And print in one chart several ROC curves. How I can do this? For example, for one model it looks like
pred_fit4 <- prediction(workData$pred,workData3$value)
perf_fit4 <- performance(pred_fit4,"tpr","fpr")
roc <- plot(perf_fit4,colorize = T, print.cutoffs.at = seq(0,1),)
and its curve output as below:
And how can I add a new line? It looks like
for (...) {
.......
.......
pred_fit4 <- prediction(workData$pred,workData3$value)
perf_fit4 <- performance(pred_fit4,"tpr","fpr")
#need add line on exist chart
roc <- plot(perf_fit4,colorize = T , print.cutoffs.at = seq(0,1),)
}

lines()(help?lines). There are numerous examples for that on SO. Please get in the habit of providing minimal reproducible (!) examples ready to copy & paste, so that others can play around with it,