<?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: SGPANEL fix in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SGPANEL-fix/m-p/479559#M31120</link>
    <description>&lt;P&gt;You might be better off adding a SEASON variable based on your Month. The Format applied to month is honored for grouping in general so you get a single color per season.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The connection is caused most likely&amp;nbsp; by each month having the same "hour". I would try inserting a record at the end of each month with a missing value for hour and delta&amp;nbsp;to create a break in the series.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something like:&lt;/P&gt;
&lt;PRE&gt;proc sort data=ramp;
by Month hour;
run;

data ramp1;
   set ramp;
   by month;
   Season= put(month,season.);
   output;
   if last.month then do;
      hour=.;
      delta=.;
      output;
   end;
run;&lt;/PRE&gt;
&lt;P&gt;Use ramp1 with panel by season and don't use the season format in the sgpanel code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jul 2018 16:19:08 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-07-19T16:19:08Z</dc:date>
    <item>
      <title>SGPANEL fix</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SGPANEL-fix/m-p/479540#M31119</link>
      <description>&lt;P&gt;Hi, I'm playing with sgpanel and I'm I need help.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="zz.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21862iAFA7644F018103E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="zz.png" alt="zz.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can I change colors of individual lines? Also how can I get rid of the connecting lines between first and last point?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the code I have:&lt;/P&gt;&lt;PRE&gt;proc sort data=ramp;
by Month hour;
run;

proc means data=ramp noprint;
by Month hour;
var delta Temperature;
output out=Meanf mean=;
run;

proc sgplot data=Meanf;
series x=Hour y=delta / group=Month MARKERS LINEATTRS = (THICKNESS = 2 PATTERN = SOLID);
XAXIS LABEL = 'Hour' GRID VALUES = (0 TO 23 BY 1);
YAXIS LABEL = 'LOAD RAMP(MW)';
title 'Monthly Load Ramp Summary';
run;

proc format library=work;
value season
12,1,2 = 'Winter'
3,4,5 = 'Spring'
6,7,8 = 'Summer'
9,10,11 = 'Fall';
run;

proc sgpanel data=Meanf ;
   panelby month /layout=panel rows=2 columns=2 onepanel ;
   format month season.;
   series x=Hour y=delta / group=Month MARKERS LINEATTRS = (THICKNESS = 2 PATTERN = SOLID) BREAK;
   colaxis label="Temperature (degrees F)";
   rowaxis label="Load Ramp (MW)";
   title 'Load Ramp vs Temperature (overall)';
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Jul 2018 15:25:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SGPANEL-fix/m-p/479540#M31119</guid>
      <dc:creator>matt23</dc:creator>
      <dc:date>2018-07-19T15:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: SGPANEL fix</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SGPANEL-fix/m-p/479559#M31120</link>
      <description>&lt;P&gt;You might be better off adding a SEASON variable based on your Month. The Format applied to month is honored for grouping in general so you get a single color per season.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The connection is caused most likely&amp;nbsp; by each month having the same "hour". I would try inserting a record at the end of each month with a missing value for hour and delta&amp;nbsp;to create a break in the series.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something like:&lt;/P&gt;
&lt;PRE&gt;proc sort data=ramp;
by Month hour;
run;

data ramp1;
   set ramp;
   by month;
   Season= put(month,season.);
   output;
   if last.month then do;
      hour=.;
      delta=.;
      output;
   end;
run;&lt;/PRE&gt;
&lt;P&gt;Use ramp1 with panel by season and don't use the season format in the sgpanel code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 16:19:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SGPANEL-fix/m-p/479559#M31120</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-07-19T16:19:08Z</dc:date>
    </item>
  </channel>
</rss>

