<?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: Shade a Region in Graph generated by sgpanel and label them through legend in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Shade-a-Region-in-Graph-generated-by-sgpanel-and-label-them/m-p/265670#M9515</link>
    <description>&lt;P&gt;There is no direct way to do this. &amp;nbsp;However, you can add another plot that will cover the entire data area and color that by the group value. &amp;nbsp;With SAS 9.4, you can use the POLYGON plot. &amp;nbsp;Or,&amp;nbsp;you could use a SCATTER, with GROUP and make the marker size big so it covers the data area. &amp;nbsp;Make sure to set the OFFSETMIN and MAX on both axes to zero.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For a general idea, see: &amp;nbsp;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2014/02/22/datalattice-with-gradient-backgrounds/." target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2014/02/22/datalattice-with-gradient-backgrounds/.&lt;/A&gt; &amp;nbsp;Here I have used GTL and a BUBBLEPLOT. &amp;nbsp;I think you could do this with SGPANEL too.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Apr 2016 15:45:44 GMT</pubDate>
    <dc:creator>Jay54</dc:creator>
    <dc:date>2016-04-22T15:45:44Z</dc:date>
    <item>
      <title>Shade a Region in Graph generated by sgpanel and label them through legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Shade-a-Region-in-Graph-generated-by-sgpanel-and-label-them/m-p/265660#M9514</link>
      <description>&lt;P&gt;Hi I am trying to generate a hbar plot using sgpanel where I need to shade the region of the plot based on the response var&amp;nbsp;values (&lt;FONT face="Courier New"&gt;MPG_Highway &lt;/FONT&gt;in below example). But&amp;nbsp;till now I couldn't find&amp;nbsp;any way to that so can any one suggest&amp;nbsp;a solution for this.&lt;/P&gt;&lt;P&gt;Here is the example:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New"&gt;SGPANEL&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New"&gt;DATA&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;=sashelp.cars;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;where&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; type in(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;"SUV"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;"Sedan"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;"Wagon"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;PANELBY&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; type / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;COLUMNS&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New"&gt;&lt;FONT color="#008080" face="Courier New"&gt;3&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;NOVARNAME&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;HBAR&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; EngineSize / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;RESPONSE&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;=MPG_Highway &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;GROUP&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;=Cylinders;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;COLAXIS&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;values&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;=(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New"&gt;&lt;FONT color="#008080" face="Courier New"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New"&gt; to &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New"&gt;&lt;FONT color="#008080" face="Courier New"&gt;30&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New"&gt; by &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New"&gt;&lt;FONT color="#008080" face="Courier New"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New"&gt;) ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;ROWAXIS&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;values&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;=(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New"&gt;&lt;FONT color="#008080" face="Courier New"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New"&gt; to &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New"&gt;&lt;FONT color="#008080" face="Courier New"&gt;30&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New"&gt; by &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New"&gt;&lt;FONT color="#008080" face="Courier New"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;TITLE1&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;"cars"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;I want to shade with color&amp;nbsp;light gray if the MPG_highway is greater than 13 if not gt 13 than shade in light yellow.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;Thank you,&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2016 15:02:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Shade-a-Region-in-Graph-generated-by-sgpanel-and-label-them/m-p/265660#M9514</guid>
      <dc:creator>maheshminnakanti</dc:creator>
      <dc:date>2016-04-22T15:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Shade a Region in Graph generated by sgpanel and label them through legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Shade-a-Region-in-Graph-generated-by-sgpanel-and-label-them/m-p/265670#M9515</link>
      <description>&lt;P&gt;There is no direct way to do this. &amp;nbsp;However, you can add another plot that will cover the entire data area and color that by the group value. &amp;nbsp;With SAS 9.4, you can use the POLYGON plot. &amp;nbsp;Or,&amp;nbsp;you could use a SCATTER, with GROUP and make the marker size big so it covers the data area. &amp;nbsp;Make sure to set the OFFSETMIN and MAX on both axes to zero.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For a general idea, see: &amp;nbsp;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2014/02/22/datalattice-with-gradient-backgrounds/." target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2014/02/22/datalattice-with-gradient-backgrounds/.&lt;/A&gt; &amp;nbsp;Here I have used GTL and a BUBBLEPLOT. &amp;nbsp;I think you could do this with SGPANEL too.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2016 15:45:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Shade-a-Region-in-Graph-generated-by-sgpanel-and-label-them/m-p/265670#M9515</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-04-22T15:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Shade a Region in Graph generated by sgpanel and label them through legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Shade-a-Region-in-Graph-generated-by-sgpanel-and-label-them/m-p/265741#M9516</link>
      <description>&lt;P&gt;When you say "shade the region of the plot", are you talking about the bar chart, or the plot background?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2016 18:50:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Shade-a-Region-in-Graph-generated-by-sgpanel-and-label-them/m-p/265741#M9516</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2016-04-22T18:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Shade a Region in Graph generated by sgpanel and label them through legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Shade-a-Region-in-Graph-generated-by-sgpanel-and-label-them/m-p/265747#M9517</link>
      <description>&lt;P&gt;Plot background...&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2016 19:17:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Shade-a-Region-in-Graph-generated-by-sgpanel-and-label-them/m-p/265747#M9517</guid>
      <dc:creator>maheshminnakanti</dc:creator>
      <dc:date>2016-04-22T19:17:23Z</dc:date>
    </item>
  </channel>
</rss>

