title: How to add a legend with multiple groups in R?
body: <p>I have a scatterplot with three different colours and two different plotting symbols. Therefore, I need a legend with 6 objects/texts. My data has this format var1,var2,group1,group2. </p>
  
  <p>How can I create the legend?</p>