title: Calculate AUC and GAM and set a scale in R
body: <p>I have a data form as follows:</p>
  
  <pre><code>x    y   chla   sst   ssha   eke  tuna
  :    :     :     :      :     :     : 
  :    :     :     :      :     :     :
  </code></pre>
  
  <p>I used GAM model as follow:</p>
  
  <p>GAM&lt;-gam(tuna~s(chla), family=binomial, data=nonLinear)</p>
  
  <p>By using such as a model above, I can process the data for chla, sst and ssha. But when I processed the eke data, it was not working and R program told me that "error in eval(expr, envir, enclos) : object <code>eke</code> not found. Can anybody help me to solve this problem?</p>
  
  <p>I already installed ROCR package to calculate the AUC. But I do not know how (the syntax) to calculate the AUC. Can anybody help me to solve this problem too?</p>
  
  <p>I also used the following command to make a graph: </p>
  
  <pre><code>plot(GAM, xlab=..., ylab=..... font.lab= ...shade=....)
  </code></pre>
  
  <p>But when I running that command the result is not so good. I mean, the scale on the y-axis is very weird. How do I set the scale on the y-axis and x-axis in 1 and 5 interval (for instance) respectively?</p>