title: How to subset and create a scatterplot with different symbols for groups?
body: <p>I am analyzing data from aid organizations, some of which are multilateral and some are bilateral.</p>
  
  <p>I want to select only the bilaterals and assign them to a variable and the same for multilaterals.</p>
  
  <p>How can I do this?</p>
  
  <p>Here are the data files <a href="https://dl.dropbox.com/u/56475675/datos_aid_R.ZIP" rel="nofollow noreferrer">https://dl.dropbox.com/u/56475675/datos_aid_R.ZIP</a></p>
  
  <pre><code>&gt; short&lt;-scan("short.txt",what=list(""))
  Read 72 records
  &gt; country&lt;-scan("country.txt")
  Read 72 items
  &gt; total&lt;-scan("total.txt")
  Read 72 items
  &gt; short&lt;-scan("short.txt",what=list(""))
  Read 72 records
  &gt; donortag&lt;-scan("donortag.txt",what=list(""))
  Read 72 records
  &gt; total&lt;-scan("total.txt")
  Read 72 items
  &gt; organization&lt;-scan("organization.txt")
  Read 72 items
  &gt; country&lt;-scan("country.txt")
  Read 72 items
  &gt; activity&lt;-scan("activity.txt")
  Read 72 items
  </code></pre>
  
  <p>After subsetting I will create a scatter plot with labels, but I would like to draw bilateral with a red square (for example), and the multilaterals with a blue circle (for example),...</p>
  
  <p>How can I use different plotting symbols in a scatter plot?</p>
  
  <p>Here you can see what I have done in R</p>
  
  <p><a href="http://img13.imageshack.us/img13/8844/snap1226.png" rel="nofollow noreferrer">http://img13.imageshack.us/img13/8844/snap1226.png http://img13.imageshack.us/img13/8844/snap1226.png</a>.</p>