My issue is the following. I use ROCR
package to plot data. performance
function returns an object that I pass to plot the data like this:
example <- performance(prediction1,"tpr","fpr")
plot(example,col="red")
I want to add another performance
object to this plot, but lines
function accepts x
and y
coords and not an object. In fact if I do: lines(example2, col="blue")
this error appears:
Error in as.double(y) : cannot coerce type 'S4' to vector of type 'double'**