title: Linear discriminant analysis plot
body: <p>How can I add the sample ID (row number) as labels to each point in this LDA plot?</p>
  
  <pre><code>library(MASS)
  ldaobject &lt;- lda(Species~., data=iris)
  plot(ldaobject, panel = function(x, y, ...) points(x, y, ...),
       col = as.integer(iris$Species), pch = 20)
  </code></pre>