title: ERR for Score plot (PCA)
body: <p>I am doing PCA in R and I got the result. But when I try to plot the first two principal components I get an error:</p>
  
  <pre><code>Warning: Ignoring unknown aesthetics: fill
  Error in eval(expr, envir, enclos) : object 'GROUP' not found
  </code></pre>
  
  <p>Here is my code:</p>
  
  <pre><code>data = read.csv("pca_scores.csv", header = T)
  data = data[, c(1:3)]
  ggplot(data, aes(PC1, PC2)) +
         geom_point(aes(shape = Group)) +
         geom_text(aes(label = data$X)) +
         stat_ellipse(aes(fill = Group))
  </code></pre>
  
  <p>I knew the problem is the “Group”. I did not mention the group in the previous code. But I really don't know how to change it</p>
  
  <p><a href="https://i.stack.imgur.com/rHgrj.png" rel="nofollow noreferrer">https://i.stack.imgur.com/rHgrj.png</a></p>