<?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: gplot to sgplot transformation in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/gplot-to-sgplot-transformation/m-p/475638#M21248</link>
    <description>&lt;P&gt;It's hard to say without knowing the structure of your data, but I think the following will get you started:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title 'Average Hourly Load for Every Month'; 
proc sgplot data = means;
 format Month; &lt;BR /&gt; series y=mean x=Hour / group=Month;
 xaxis values=(0 to 23 by 1); &lt;BR /&gt;run; &lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 05 Jul 2018 14:20:41 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2018-07-05T14:20:41Z</dc:date>
    <item>
      <title>gplot to sgplot transformation</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/gplot-to-sgplot-transformation/m-p/475632#M21243</link>
      <description>&lt;P&gt;Hi I have this code for GPLOT but I want to change it into SGPLOT as I think there's more options to make it look nicer. Here's the code I have and I need help transforming it into sgplot:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc sort data = dataname;
 by Month Hour;
run;

proc summary data = dataname;
 by Month Hour;
 var Load;
 output out = means (drop = _:) mean = mean n = n stderr = stderr;
run;

symbol1 i = j value = W font = marker c = vivb h = 1 line = 1 width = 1;
symbol2 i = j value = W font = marker c = bigb h = 1 line = 1 width = 1; 
symbol3 i = j value = W font = marker c = liolbr h = 1 line = 1 width = 1;
symbol4 i = j value = W font = marker c = lilg h = 1 line = 1 width = 1; 
symbol5 i = j value = W font = marker c = vilg h = 1 line = 1 width = 1;
symbol6 i = j value = W font = marker c = salmon h = 1 line = 1 width = 1; 
symbol7 i = j value = W font = marker c = vipk h = 1 line = 1 width = 1;
symbol8 i = j value = W font = marker c = lippk h = 1 line = 1 width = 1; 
symbol9 i = j value = W font = marker c = strbr h = 1 line = 1 width = 1;
symbol10 i = j value = W font = marker c = morbr h = 1 line = 1 width = 1; 
symbol11 i = j value = W font = marker c = debr h = 1 line = 1 width = 1;
symbol12 i = j value = W font = marker c = bib h = 1 line = 1 width = 1; 

proc gplot data = means;
axis1 order=(0 to 23 by 1);
 plot mean * Hour = Month / haxis=axis1;
 title 'Average Hourly Load for Every Month';
 format Month
run; &lt;/PRE&gt;&lt;P&gt;Here's how it look with gplot:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 591px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21587iBDBB1535DF65EC56/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 14:12:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/gplot-to-sgplot-transformation/m-p/475632#M21243</guid>
      <dc:creator>matt23</dc:creator>
      <dc:date>2018-07-05T14:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: gplot to sgplot transformation</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/gplot-to-sgplot-transformation/m-p/475634#M21244</link>
      <description>&lt;P&gt;In this case, you want to use the SERIES command in PROC SGPLOT with the GROUP= option.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 14:15:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/gplot-to-sgplot-transformation/m-p/475634#M21244</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-07-05T14:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: gplot to sgplot transformation</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/gplot-to-sgplot-transformation/m-p/475635#M21245</link>
      <description>&lt;P&gt;Bookmark this page:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Its has code for pretty much any graphing activity you want to do, it is my one best source for anything sgplot/gtl related.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 14:17:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/gplot-to-sgplot-transformation/m-p/475635#M21245</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-07-05T14:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: gplot to sgplot transformation</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/gplot-to-sgplot-transformation/m-p/475636#M21246</link>
      <description>How would the code look for sgplot then?&lt;BR /&gt;When I change it to sgplot, command 'plot' does not work anymore</description>
      <pubDate>Thu, 05 Jul 2018 14:18:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/gplot-to-sgplot-transformation/m-p/475636#M21246</guid>
      <dc:creator>matt23</dc:creator>
      <dc:date>2018-07-05T14:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: gplot to sgplot transformation</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/gplot-to-sgplot-transformation/m-p/475637#M21247</link>
      <description>thank you, that is a great resource</description>
      <pubDate>Thu, 05 Jul 2018 14:19:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/gplot-to-sgplot-transformation/m-p/475637#M21247</guid>
      <dc:creator>matt23</dc:creator>
      <dc:date>2018-07-05T14:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: gplot to sgplot transformation</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/gplot-to-sgplot-transformation/m-p/475638#M21248</link>
      <description>&lt;P&gt;It's hard to say without knowing the structure of your data, but I think the following will get you started:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title 'Average Hourly Load for Every Month'; 
proc sgplot data = means;
 format Month; &lt;BR /&gt; series y=mean x=Hour / group=Month;
 xaxis values=(0 to 23 by 1); &lt;BR /&gt;run; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Jul 2018 14:20:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/gplot-to-sgplot-transformation/m-p/475638#M21248</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-07-05T14:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: gplot to sgplot transformation</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/gplot-to-sgplot-transformation/m-p/475641#M21250</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/216327"&gt;@matt23&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;How would the code look for sgplot then?&lt;BR /&gt;When I change it to sgplot, command 'plot' does not work anymore&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;As I said, you use the SERIES command.&amp;nbsp;Here is the documentation if you are not familiar with it.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?cdcId=pgmmvacdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=grstatproc&amp;amp;docsetTarget=n0yjdd910dh59zn1toodgupaj4v9.htm&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?cdcId=pgmmvacdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=grstatproc&amp;amp;docsetTarget=n0yjdd910dh59zn1toodgupaj4v9.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 14:21:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/gplot-to-sgplot-transformation/m-p/475641#M21250</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-07-05T14:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: gplot to sgplot transformation</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/gplot-to-sgplot-transformation/m-p/475650#M21251</link>
      <description>Yes, thank you, that is perfect.&lt;BR /&gt;Is there any way I can edit the look of each SERIES?</description>
      <pubDate>Thu, 05 Jul 2018 14:43:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/gplot-to-sgplot-transformation/m-p/475650#M21251</guid>
      <dc:creator>matt23</dc:creator>
      <dc:date>2018-07-05T14:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: gplot to sgplot transformation</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/gplot-to-sgplot-transformation/m-p/475654#M21252</link>
      <description>&lt;P&gt;Yes. The easiest way (assuming you are using a modern version of SAS) is to &lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2013/07/14/setting-graph-colors-is-easier-with-sas-9-4/" target="_self"&gt;use the STYLEATTRS statement.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=have nocycleattrs;
styleattrs datacontrastcolors=(black bigb liolbr lilg vilg salmon vipk lippk strbr morbr debr bib);
series y=mean x=Hour / group=Month;
xaxis values=(0 to 23 by 1); run; 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 14:53:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/gplot-to-sgplot-transformation/m-p/475654#M21252</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-07-05T14:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: gplot to sgplot transformation</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/gplot-to-sgplot-transformation/m-p/475660#M21253</link>
      <description>&lt;P&gt;I'm a fan of the data attribute maps. Having the data in a data set makes it a little more dynamic and easy to change/update IMO.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p18q268a3zxcl3n11lnnnq4cme8r.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=da" target="_blank"&gt;http://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p18q268a3zxcl3n11lnnnq4cme8r.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=da&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/216327"&gt;@matt23&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Yes, thank you, that is perfect.&lt;BR /&gt;Is there any way I can edit the look of each SERIES?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 14:59:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/gplot-to-sgplot-transformation/m-p/475660#M21253</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-07-05T14:59:32Z</dc:date>
    </item>
  </channel>
</rss>

