<?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: SG Plot Help needed for accumulated response in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SG-Plot-Help-needed-for-accumulated-response/m-p/150447#M5669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a way using a needle plot to create a summary bar at the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data class;&lt;/P&gt;&lt;P&gt;set sashelp.class (where=(sex eq 'M')) end=_last_;&lt;/P&gt;&lt;P&gt;retain _sum_ 0;&lt;/P&gt;&lt;P&gt;_sum_=_sum_+weight;&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;if (_last_) then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; name="Total";&lt;/P&gt;&lt;P&gt;&amp;nbsp; weight=.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; total=_sum_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=class;&lt;/P&gt;&lt;P&gt;scatter x=name y=weight;&lt;/P&gt;&lt;P&gt;needle x=name y=total / y2axis lineattrs=(thickness=20);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Sep 2014 15:10:32 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2014-09-18T15:10:32Z</dc:date>
    <item>
      <title>SG Plot Help needed for accumulated response</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SG-Plot-Help-needed-for-accumulated-response/m-p/150445#M5667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm plotting a graph using SGPLOT like below, and I'm getting the good graph with all the clients groups.&lt;/P&gt;&lt;P&gt;Now I want to see along with my individual client performance, I'd like to see the total performance in the same plot. &lt;/P&gt;&lt;P&gt;Please let me know which option should I use to get this result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC SGPLOT DATA = DATA;&lt;/P&gt;&lt;P&gt;SCATTER Y = PERCENT X = CLIENT/ GROUP = PULL_TYPE GROUPORDER = DESCENDING MARKERATTRS = (SYMBOL = TRIANGLEFILLED);&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 14:46:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SG-Plot-Help-needed-for-accumulated-response/m-p/150445#M5667</guid>
      <dc:creator>NareshAbburi</dc:creator>
      <dc:date>2014-09-18T14:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: SG Plot Help needed for accumulated response</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SG-Plot-Help-needed-for-accumulated-response/m-p/150446#M5668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can put another graph over the top of the previous one:&lt;/P&gt;&lt;P&gt;PROC SGPLOT DATA = DATA;&lt;/P&gt;&lt;P&gt;SCATTER Y = PERCENT X = CLIENT/ GROUP = PULL_TYPE GROUPORDER = DESCENDING MARKERATTRS = (SYMBOL = TRIANGLEFILLED);&lt;/P&gt;&lt;P&gt;scatter y=xxx x=yyy / ...;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may also like to have a look at this blog, which has hundreds of examples for sgplot/template:&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://blogs.sas.com/content/graphicallyspeaking/"&gt;http://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 14:49:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SG-Plot-Help-needed-for-accumulated-response/m-p/150446#M5668</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-09-18T14:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: SG Plot Help needed for accumulated response</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SG-Plot-Help-needed-for-accumulated-response/m-p/150447#M5669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a way using a needle plot to create a summary bar at the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data class;&lt;/P&gt;&lt;P&gt;set sashelp.class (where=(sex eq 'M')) end=_last_;&lt;/P&gt;&lt;P&gt;retain _sum_ 0;&lt;/P&gt;&lt;P&gt;_sum_=_sum_+weight;&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;if (_last_) then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; name="Total";&lt;/P&gt;&lt;P&gt;&amp;nbsp; weight=.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; total=_sum_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=class;&lt;/P&gt;&lt;P&gt;scatter x=name y=weight;&lt;/P&gt;&lt;P&gt;needle x=name y=total / y2axis lineattrs=(thickness=20);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 15:10:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SG-Plot-Help-needed-for-accumulated-response/m-p/150447#M5669</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2014-09-18T15:10:32Z</dc:date>
    </item>
  </channel>
</rss>

