<?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 refline suppression in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-refline-suppression/m-p/480937#M16617</link>
    <description>&lt;P&gt;Since all your X axis are the same, you could make all the lines about a given parameter into groups, including the reflines. This would mean adding some observations to your dataset to draw the reflines.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;group = "LOWER";&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;valueACTW = lwrw;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;time = minTime; output; time = maxTime; output;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;group = "UPPER";&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;valueACTW = uwrw;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;time = minTime; output; time = maxTime; output;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;series x = Time y = valueActW / group=group ...;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but also using a discrete&amp;nbsp;attribute map dataset to control the appearance of the&amp;nbsp;groups (lines).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jul 2018 20:15:53 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2018-07-24T20:15:53Z</dc:date>
    <item>
      <title>SGPanel refline suppression</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-refline-suppression/m-p/480887#M16608</link>
      <description>&lt;P&gt;Hello. I believe that what I'm looking for isn't currently possible but I'm hoping that someone may have a workaround or other suggestion. I'm using V9.4 Level 1M1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The attached figure is produced by SGPanel using the syntax below. The data are near-instantaneous measurements of the performance of a fish trawl, net dimensions, vessel speed, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mostly, the scales of the row (y) axes don't overlap so the refline(s) for each part of the figure appear to be independent of one another (i.e. blue for Net Width, Orange for Vessel Speed, etc.). However, for a couple of the parameters (Bottom Contact and Net Temp) the scales do overlap with other types of measurements and so the reflines appear on parts of the figure where I don't really want them to (e.g. the reflines for Door Width, Net Width, Net Height, and Vessel Speed all show on the figure for Bottom Contact). The reflines for each parameter represent the minimum, maximum, acceptable values and normal/expected value for each parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, my question... is there any way to suppress the reflines for parts of the figure or to otherwise fool the system into making them not-visible? Any suggestions appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Program statements:&lt;/P&gt;&lt;P&gt;ods graphics on / width = 9.00in height = 12.00in;&lt;BR /&gt;options nobyline;&lt;/P&gt;&lt;P&gt;proc sgpanel data = PlotNets01SRPanel noautolegend;&lt;BR /&gt;by Station;&lt;BR /&gt;panelby Measuretitle / columns=1 rows=7 uniscale=column novarname headerattrs=(weight = bold size = 10PT);&lt;BR /&gt;series x = Time y = valueActW / lineattrs = (pattern=1 color=blue thickness=2 PT) markers markerattrs = (color=blue size=10 PT);&lt;BR /&gt;series x = time y = ValueMinW / transparency=1;&lt;BR /&gt;series x = time y = ValueMaxW / transparency=1;&lt;BR /&gt;refline LwrW / axis=y lineattrs = (pattern=5 color = blue);&lt;BR /&gt;refline UprW / axis=y lineattrs = (pattern=5 color = blue);&lt;BR /&gt;refline NrmW / axis=y lineattrs = (pattern=2 color = blue);&lt;/P&gt;&lt;P&gt;series x = Time y = valueActH / lineattrs = (pattern=1 color=red thickness=2 PT) markers markerattrs = (color=red size=10 PT) ;&lt;BR /&gt;series x = time y = ValueMinH / transparency=1;&lt;BR /&gt;series x = time y = ValueMaxH / transparency=1;&lt;BR /&gt;refline LwrH / axis=y lineattrs = (pattern=5 color = red);&lt;BR /&gt;refline UprH / axis=y lineattrs = (pattern=5 color = red);&lt;BR /&gt;refline NrmH / axis=y lineattrs = (pattern=2 color = red);&lt;/P&gt;&lt;P&gt;series x = Time y = valueActS / lineattrs = (pattern=1 color=orange thickness=2 PT) markers markerattrs = (color=orange size=10 PT) ;&lt;BR /&gt;series x = time y = ValueMinS / transparency=1;&lt;BR /&gt;series x = time y = ValueMaxS / transparency=1;&lt;BR /&gt;refline LwrS / axis=y lineattrs = (pattern=5 color = orange);&lt;BR /&gt;refline UprS / axis=y lineattrs = (pattern=5 color = orange);&lt;BR /&gt;refline NrmS / axis=y lineattrs = (pattern=2 color = orange);&lt;/P&gt;&lt;P&gt;series x = Time y = valueActD / lineattrs = (pattern=1 color=green thickness=2 PT) markers markerattrs = (color=green size=10 PT);&lt;BR /&gt;series x = time y = ValueMinD / transparency=1;&lt;BR /&gt;series x = time y = ValueMaxD / transparency=1;&lt;BR /&gt;refline LwrD / axis=y lineattrs = (pattern=5 color = green);&lt;BR /&gt;refline UprD / axis=y lineattrs = (pattern=5 color = green);&lt;BR /&gt;refline NrmD / axis=y lineattrs = (pattern=2 color = green);&lt;/P&gt;&lt;P&gt;series x = Time y = valueActDp / lineattrs = (pattern=1 color=green thickness=2 PT) markers markerattrs = (color=green size=10 PT);&lt;BR /&gt;series x = time y = ValueMinDp / transparency=1;&lt;BR /&gt;series x = time y = ValueMaxDp / transparency=1;&lt;/P&gt;&lt;P&gt;series x = Time y = valueActT / lineattrs = (pattern=1 color=violet thickness=2 PT) markers markerattrs = (symbol=circle color=violet size=10 PT);&lt;BR /&gt;series x = time y = ValueMinT / transparency=1;&lt;BR /&gt;series x = time y = ValueMaxT / transparency=1;&lt;/P&gt;&lt;P&gt;series x = Time y = valueActB / lineattrs = (pattern=1 color=black thickness=2 PT) markers markerattrs = (symbol=circle color=black size=10 PT);&lt;BR /&gt;series x = time y = ValueMinB / transparency=1;&lt;BR /&gt;series x = time y = ValueMaxB / transparency=1;&lt;/P&gt;&lt;P&gt;title h=1.5 '#byval1';&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 18:46:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-refline-suppression/m-p/480887#M16608</guid>
      <dc:creator>Bonzeus</dc:creator>
      <dc:date>2018-07-24T18:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: SGPanel refline suppression</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-refline-suppression/m-p/480890#M16609</link>
      <description>&lt;P&gt;Your picture did not get attached.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 18:50:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-refline-suppression/m-p/480890#M16609</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-07-24T18:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: SGPanel refline suppression</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-refline-suppression/m-p/480895#M16610</link>
      <description>&lt;P&gt;Sorry... first time in 35 years as a sas programmer I've used this help system. Trying again.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TrawlData.jpg" style="width: 450px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21980iADAC05E7A93BA075/image-size/large?v=v2&amp;amp;px=999" role="button" title="TrawlData.jpg" alt="TrawlData.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 18:57:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-refline-suppression/m-p/480895#M16610</guid>
      <dc:creator>Bonzeus</dc:creator>
      <dc:date>2018-07-24T18:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: SGPanel refline suppression</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-refline-suppression/m-p/480908#M16611</link>
      <description>Two approaches I can see. One is add some measure of variance or some detection method to determine when it can't be done and then just 0 or set those values to missing in those cases, so there's no value for the reflines. Another is to see if conditional formatting is available and in those cases set to to the same colour as the background color and then they'd pretty much disappear. These are high level approaches. Hopefully someone else can help with the exact code or it can help you get started.</description>
      <pubDate>Tue, 24 Jul 2018 19:22:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-refline-suppression/m-p/480908#M16611</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-07-24T19:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: SGPanel refline suppression</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-refline-suppression/m-p/480920#M16612</link>
      <description>&lt;P&gt;The issue appears to be how you merged the refline data into your main data. Try these steps:&lt;/P&gt;
&lt;P&gt;1. Put the refline in a separate dataset, using the same PANELBY variable (measuretitle) and the correct measure title for each refline value.&lt;/P&gt;
&lt;P&gt;2. Match merge the refline data with the main data by measuretitle&lt;/P&gt;
&lt;P&gt;3. Use the resulting dataset in sgpanel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should create refline grouping that are unique to each each, regardless of data range. Let me know if this works for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 19:40:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-refline-suppression/m-p/480920#M16612</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-07-24T19:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: SGPanel refline suppression</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-refline-suppression/m-p/480925#M16613</link>
      <description>&lt;P&gt;Thanks for the suggestion. I understand what you're saying though i must misunderstand how reline works in SGPanel. I thought that if you specify a refline at one particular y value that it would appear in whatever panel it would 'fit' according to the range of the y axis in that panel. I must be wrong about that. So thanks for clarifying. I'll give your suggestion a try.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 19:47:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-refline-suppression/m-p/480925#M16613</guid>
      <dc:creator>Bonzeus</dc:creator>
      <dc:date>2018-07-24T19:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: SGPanel refline suppression</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-refline-suppression/m-p/480927#M16614</link>
      <description>&lt;P&gt;Thanks for the ideas. I'm going to try DanH's suggestion first and if that doesn't help I'll look more into yours.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 19:48:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-refline-suppression/m-p/480927#M16614</guid>
      <dc:creator>Bonzeus</dc:creator>
      <dc:date>2018-07-24T19:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: SGPanel refline suppression</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-refline-suppression/m-p/480931#M16615</link>
      <description>&lt;P&gt;Without seeing your data processing, I would have to guess that you set the value for each of these reflines in your data step without considering the panelby variable value. This would make the reflines appear on any axis with that value (like you described). By including the panelby variable and match-merging, you isolate the reflines to each cell so you do not get the "bleed over" you saw.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 20:03:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-refline-suppression/m-p/480931#M16615</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-07-24T20:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: SGPanel refline suppression</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-refline-suppression/m-p/480933#M16616</link>
      <description>My reflines are actually hard-coded via macro variables in the upper parts of the program then assigned to regular SAS variables in the last data step before I plot, so yes they exist on every data line regardless of the panelby variable.&lt;BR /&gt;&lt;BR /&gt;I learned something new today. Thanks much.</description>
      <pubDate>Tue, 24 Jul 2018 20:08:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-refline-suppression/m-p/480933#M16616</guid>
      <dc:creator>Bonzeus</dc:creator>
      <dc:date>2018-07-24T20:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: SGPanel refline suppression</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-refline-suppression/m-p/480937#M16617</link>
      <description>&lt;P&gt;Since all your X axis are the same, you could make all the lines about a given parameter into groups, including the reflines. This would mean adding some observations to your dataset to draw the reflines.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;group = "LOWER";&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;valueACTW = lwrw;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;time = minTime; output; time = maxTime; output;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;group = "UPPER";&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;valueACTW = uwrw;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;time = minTime; output; time = maxTime; output;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;series x = Time y = valueActW / group=group ...;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but also using a discrete&amp;nbsp;attribute map dataset to control the appearance of the&amp;nbsp;groups (lines).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 20:15:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-refline-suppression/m-p/480937#M16617</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-07-24T20:15:53Z</dc:date>
    </item>
  </channel>
</rss>

