title: Plot ROC curve: Error in seq.default(min.alpha, max.alpha, length = length(colors)) : 'from' cannot be NA, NaN or infinite
body: <p>I am trying to plot a ROC curve based on outcome (ED) and predicted class (p) using RORR package. I got the following error and I don't have any idea about that.</p>
  
  <p>Error in seq.default(min.alpha, max.alpha, length = length(colors)) : 'from' cannot be NA, NaN or infinite.</p>
  
  <pre><code>library(arules)
  library(Matrix)
  library(ROCR)
  library(arulesViz)
  pred &lt;- prediction(p, ED)
  perf &lt;- performance(pred, measure="tpr", x.measure="fpr")
  plot(perf, main="ROC Curve", colorize=T)
  </code></pre>
  
  <p>I need to plot ROC for ZeroR, OneR, Decision tree, logistic regression and Linear discriminant analysis. In some of the methods, the predicted value would be probabilities (such as logistic regression) and in some of them (ZeroR), the predicted values would be 0/1. </p>
  
  <p>I appreciate if someone can help me with this.</p>
  
  <p>Thanks,
  Mahsa</p>