title: Use SAS overlay with different colors for a given year
body: <p>I have the following piece of code which plots population figures <code>yr1946</code> <code>yr1953</code> etc with another numeric variable titled <code>Land_Area</code> </p>
  
  <p>The following creates a plot for each year with a distinct color, How do I include a legend that says which color is associated with which year. This is what I have so far. </p>
  
  <pre><code>symbol1 value=dot color=red; 
  symbol2 value=dot color=green;
  symbol3 value=dot color=yellow;
  symbol4 value=dot color=green;
  
  
  proc gplot data=Slpopwip;
  plot yr1946*Land_Area=' ' yr1953*Land_Area=' ' yr1963*Land_Area=' ' yr1971*Land_Area=' ' /OVERLAY;
  title'Overlay';
  run;
  quit;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/heRuP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/heRuP.png" alt="enter image description here"></a></p>