title: Changing scatterplot symbols according to a text string in R
body: <p>I'm new to R (and coding in general) and am having trouble with a scatterplot.  I have four groups in my data (VH, H, M, L) that is in a column called hdi.  I want to have the symbols in my scatterplot change according to what string is in the hdi column (i.e. Star if VH, circle if M, etc.).  Something like the "group by" in minitab.</p>
  
  <p>I've found the pch command, but can't figure out how to split it up.</p>
  
  <p>Thanks</p>
  
  <p>Edit> sorry, this is the first question I've asked here.  Here's an edited version of  what I have so far, and I want to have the shapes determined by which of the 4 text strings it has in group1csv$hdi</p>
  
  <p>producedpercent &lt;- group1csv$Percentage.of.requests.where.some.data.produced * 100
  hdinumber &lt;- group1csv$UN.HDI.number</p>
  
  <p>windows()
  plot(hdinumber, producedpercent,
       xlab="",
       ylab="", 
       las=1
       )</p>