i am trying to plot a ROC curve for a multiclass problem, using multiclass.roc function from pROC package, but I get this error:
'x' is a list, but does not have components 'x' and 'y'
What does this error mean cause searching in the web didn’t help me to find an answer. I can print the roc object, but can not plot it.
Thank you!
If you call
ploton a listl:plot (l), the x coordinates will be taken froml$xand the y coordinates froml$y. Your list doesn’t have elements x and y.You need to call
plot (l$your.x.coordinate, l$your.y.coordinate)instead.