<?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: Help with plot of GBARLINE in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Help-with-plot-of-GBARLINE/m-p/109321#M258769</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reason your periods are grouped is the use of : Foramat period year4.; which is telling SAS to group and display by year. Use YYQ6. YYQS8. or similar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the data is already summarized as it appears in your case the choice of statistic doesn't matter but the procedure does expect to have a statistic. I think with the format change above you'll get what you're looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Oct 2012 15:03:08 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2012-10-31T15:03:08Z</dc:date>
    <item>
      <title>Help with plot of GBARLINE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-plot-of-GBARLINE/m-p/109319#M258767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;Need your suggestions/help for the problem I am facing.&lt;/P&gt;&lt;P&gt;Here is the dataset, the code and the current output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dataset:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="WIDTH: 192px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl22" height="17" width="64"&gt;&lt;STRONG&gt;Period&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none;" width="64"&gt;&lt;STRONG&gt;Amount&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none;" width="64"&gt;&lt;STRONG&gt;Change&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="17" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;31/03/07&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;100&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;3.5&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="17" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;30/06/07&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;110&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;3&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="17" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;30/09/07&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;116&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;10&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="17" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;31/12/07&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;125&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;4&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="17" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;31/03/08&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;118&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;3.2&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="17" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;30/06/08&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;128&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;3&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="17" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;30/09/08&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;135&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;3.5&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="17" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;31/12/08&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;140&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;4&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="17" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;31/03/09&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;145&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="17" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;30/06/09&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;153&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;12&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="17" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;30/09/09&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;130&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;1.5&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="17" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;31/12/09&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;135&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="17" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;31/03/10&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;120&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;1.5&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="17" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;30/06/10&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;140&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="17" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;30/09/10&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;152&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="17" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;31/12/10&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;164&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="17" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;31/03/11&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;175&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;1.5&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="17" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;30/06/11&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;180&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;15&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="17" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;30/09/11&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;188&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="17" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;31/12/11&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;195&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;1.7&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CODE:&lt;/P&gt;&lt;P&gt;/*****************************************************/&lt;BR /&gt;symbol1 value=dot height=0.25 interpol=join color=red;&lt;BR /&gt;axis1 minor=none label=(angle=90 "change") ;&lt;BR /&gt;axis3 minor=none label=("Year") ;&lt;BR /&gt;axis2 minor=none label=(angle=270 color=red "amount") value=(color=red);&lt;/P&gt;&lt;P&gt;proc gbarline data=GBARLIN1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bar period / discrete type=mean&amp;nbsp; sumvar=change raxis=axis1 maxis=axis3 inside=mean width=8 space=4;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; plot/sumvar=amount axis=axis2;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format period year4.;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format change 4.1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format amount 3.;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;BR /&gt;quit;&lt;BR /&gt;/*****************************************************/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current OUTPUT:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="gbarline_plotissue.JPG" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/2658_gbarline_plotissue.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issues are:&lt;/P&gt;&lt;P&gt;1) For the plot , I needed the amount to be plotted and not their SUM or MEAN...That is no statistics...How do I achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Can I plot all the values on the line (i.e., all the quarter values)&amp;nbsp; not just values at midpoint?&amp;nbsp; (that is the bars will be yearly mean of one of the &lt;/P&gt;&lt;P&gt;variable(change) while plot should be representing the exact value of the other variable (amount) for all the quarters (but no mean/sum) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2012 21:31:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-plot-of-GBARLINE/m-p/109319#M258767</guid>
      <dc:creator>VijayKumar</dc:creator>
      <dc:date>2012-10-28T21:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help with plot of GBARLINE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-plot-of-GBARLINE/m-p/109320#M258768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me with your suggestions!!&lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.sas.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-VK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 14:50:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-plot-of-GBARLINE/m-p/109320#M258768</guid>
      <dc:creator>VijayKumar</dc:creator>
      <dc:date>2012-10-31T14:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help with plot of GBARLINE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-plot-of-GBARLINE/m-p/109321#M258769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reason your periods are grouped is the use of : Foramat period year4.; which is telling SAS to group and display by year. Use YYQ6. YYQS8. or similar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the data is already summarized as it appears in your case the choice of statistic doesn't matter but the procedure does expect to have a statistic. I think with the format change above you'll get what you're looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 15:03:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-plot-of-GBARLINE/m-p/109321#M258769</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-10-31T15:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help with plot of GBARLINE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-plot-of-GBARLINE/m-p/109322#M258770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ballard for you reply. Your explanation is correct!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, I have used YEAR4. because I want yearly average per BAR...&lt;/P&gt;&lt;P&gt;and for the plot I wanted all the points plotted.&amp;nbsp; But the problem is that the plot is plotting at midpoints only. Is there some trick to have plot display all the values?&lt;/P&gt;&lt;P&gt;In short, for BAR... it should group while for PLOT it should not group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 15:45:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-plot-of-GBARLINE/m-p/109322#M258770</guid>
      <dc:creator>VijayKumar</dc:creator>
      <dc:date>2012-10-31T15:45:29Z</dc:date>
    </item>
  </channel>
</rss>

