title: How to plot a subset of data in Stata?
body: <p>How can I write the code to do the following:</p>
  
  <p><code>scatter salaries female || lfit part98 female if group1==1</code></p>
  
  <p>I'm trying to plot <code>salaries</code> against <code>female</code> and include the best linear regression fit, but only from the observations in <code>group1</code>. (There are 3 groups in the dataset.)</p>