<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to plot a line graph for jsut one value within a variable? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-plot-a-line-graph-for-jsut-one-value-within-a-variable/m-p/32203#M1043</link>
    <description>Hi:&lt;BR /&gt;
  Most SAS procedures (including the Graph procedures) support WHERE statement processing. &lt;BR /&gt;
Just as you can do this with PROC PRINT:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods listing;&lt;BR /&gt;
proc print data=sashelp.class;&lt;BR /&gt;
  where name = 'John';&lt;BR /&gt;
run;&lt;BR /&gt;
                     &lt;BR /&gt;
OR&lt;BR /&gt;
                     &lt;BR /&gt;
proc print data=work.fruit;&lt;BR /&gt;
  where fruits = 'Apple' and&lt;BR /&gt;
        year(month) = 2007;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                                                                 &lt;BR /&gt;
So will the SAS/GRAPH procedures use WHERE statements (or WHERE= data set options) &lt;BR /&gt;
to allow you to send only a subset of observations to the procedure.&lt;BR /&gt;
                    &lt;BR /&gt;
  cynthia</description>
    <pubDate>Thu, 17 Dec 2009 23:27:05 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2009-12-17T23:27:05Z</dc:date>
    <item>
      <title>How to plot a line graph for jsut one value within a variable?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-plot-a-line-graph-for-jsut-one-value-within-a-variable/m-p/32202#M1042</link>
      <description>Hi all, &lt;BR /&gt;
&lt;BR /&gt;
I have three variables Month, Type of Fruits and The number of sales (Count) each month. The data as arrange below. &lt;BR /&gt;
&lt;BR /&gt;
Month	Fruits	Count&lt;BR /&gt;
2007/08	Apple	5&lt;BR /&gt;
2007/08	Apple	6&lt;BR /&gt;
2007/08	Strawberry	4&lt;BR /&gt;
2007/08	Strawberry	1&lt;BR /&gt;
2007/08	Orange	22&lt;BR /&gt;
2007/08	Orange	90&lt;BR /&gt;
2007/07	Apple	25&lt;BR /&gt;
2007/07	Apple	4&lt;BR /&gt;
2007/07	Strawberry	83&lt;BR /&gt;
2007/07	Strawberry	80&lt;BR /&gt;
2007/07	Orange	25&lt;BR /&gt;
2007/07	Orange	25&lt;BR /&gt;
2007/06	Apple	10&lt;BR /&gt;
2007/06	Apple	6&lt;BR /&gt;
2007/06	Strawberry	7&lt;BR /&gt;
2007/06	Strawberry	96&lt;BR /&gt;
2007/06	Orange	61&lt;BR /&gt;
2007/06	Orange	22&lt;BR /&gt;
&lt;BR /&gt;
Just wondering, say for example, if I just want a line graph just for the sales of apple in that three months  (Jun-Aug 2007). How do I plot it? &lt;BR /&gt;
&lt;BR /&gt;
Hope you can help. Cheers!&lt;BR /&gt;
Yennie</description>
      <pubDate>Thu, 17 Dec 2009 22:59:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-plot-a-line-graph-for-jsut-one-value-within-a-variable/m-p/32202#M1042</guid>
      <dc:creator>Yennie</dc:creator>
      <dc:date>2009-12-17T22:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to plot a line graph for jsut one value within a variable?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-plot-a-line-graph-for-jsut-one-value-within-a-variable/m-p/32203#M1043</link>
      <description>Hi:&lt;BR /&gt;
  Most SAS procedures (including the Graph procedures) support WHERE statement processing. &lt;BR /&gt;
Just as you can do this with PROC PRINT:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods listing;&lt;BR /&gt;
proc print data=sashelp.class;&lt;BR /&gt;
  where name = 'John';&lt;BR /&gt;
run;&lt;BR /&gt;
                     &lt;BR /&gt;
OR&lt;BR /&gt;
                     &lt;BR /&gt;
proc print data=work.fruit;&lt;BR /&gt;
  where fruits = 'Apple' and&lt;BR /&gt;
        year(month) = 2007;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                                                                 &lt;BR /&gt;
So will the SAS/GRAPH procedures use WHERE statements (or WHERE= data set options) &lt;BR /&gt;
to allow you to send only a subset of observations to the procedure.&lt;BR /&gt;
                    &lt;BR /&gt;
  cynthia</description>
      <pubDate>Thu, 17 Dec 2009 23:27:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-plot-a-line-graph-for-jsut-one-value-within-a-variable/m-p/32203#M1043</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-12-17T23:27:05Z</dc:date>
    </item>
  </channel>
</rss>

