title: SAS: Using WHERE / IF Statement in SGPlot
body: <p>Good afternoon,</p>
  
  <p>I would like to define my parameters in my plot as opposed to generating a plot with all values. </p>
  
  <p>For example, I want to show only the sale price of the data not exceeding $400,000. This syntax is not correct, but this is my attempt at it. Should I use the if, by, or where statement in this matter? Thank you!</p>
  
  <pre><code>proc sgplot data=mydata; 
  loess x = FirstFlrSF  y = saleprice / group= OverallQual;
  reg x = FirstFlrSF y = saleprice;
  where saleprice =&lt; 400000;
  title "First Floor SF vs sales price"; run;
  </code></pre>