<?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: Line graph by group and percentage in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Line-graph-by-group-and-percentage/m-p/655599#M13850</link>
    <description>&lt;P&gt;Percentage of what? Total number of event days? Percent change between groups? Ids? Need to know what the numerator and denominator for each value would be.&lt;/P&gt;
&lt;P&gt;You will have to calculate the desired percentage prior to graphing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And time to move to SGPLOT instead of Gplot. Which might look something like this after you add the appropriate percentage value.&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=have;
   series x=event_days y=percent/group=group   markers;
run;&lt;/PRE&gt;</description>
    <pubDate>Tue, 09 Jun 2020 17:21:14 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-06-09T17:21:14Z</dc:date>
    <item>
      <title>Line graph by group and percentage</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Line-graph-by-group-and-percentage/m-p/655597#M13849</link>
      <description>&lt;P&gt;I have the following data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to create line graph by group and percent by group&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample dataset:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="223"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="54"&gt;ID&lt;/TD&gt;
&lt;TD width="80"&gt;group&lt;/TD&gt;
&lt;TD width="89"&gt;event_days&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1&lt;/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;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output [this data won't match]&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dd.PNG" style="width: 788px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/41595iBB416DEBEF590F2C/image-size/large?v=v2&amp;amp;px=999" role="button" title="dd.PNG" alt="dd.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;DIV id="tinyMceEditormonday89_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;proc gplot data=sample;                                                                                                                 
   plot (yvar1 yvar2 yvar3)*xvar / overlay legend=legend1                                                                               
                                   haxis=axis1 vaxis=axis2;                                                                             
run;                                                                                                                                    
quit;     &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I am not sure how to do percentage first??&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 17:10:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Line-graph-by-group-and-percentage/m-p/655597#M13849</guid>
      <dc:creator>monday89</dc:creator>
      <dc:date>2020-06-09T17:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Line graph by group and percentage</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Line-graph-by-group-and-percentage/m-p/655599#M13850</link>
      <description>&lt;P&gt;Percentage of what? Total number of event days? Percent change between groups? Ids? Need to know what the numerator and denominator for each value would be.&lt;/P&gt;
&lt;P&gt;You will have to calculate the desired percentage prior to graphing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And time to move to SGPLOT instead of Gplot. Which might look something like this after you add the appropriate percentage value.&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=have;
   series x=event_days y=percent/group=group   markers;
run;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Jun 2020 17:21:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Line-graph-by-group-and-percentage/m-p/655599#M13850</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-06-09T17:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Line graph by group and percentage</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Line-graph-by-group-and-percentage/m-p/655600#M13851</link>
      <description>&lt;P&gt;Percentage of what? Please explain how to take the sample data you show and turn it into percentages.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 17:21:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Line-graph-by-group-and-percentage/m-p/655600#M13851</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-06-09T17:21:16Z</dc:date>
    </item>
  </channel>
</rss>

