<?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: Dot Plot Conditional Formatting Question in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Dot-Plot-Conditional-Formatting-Question/m-p/169086#M6289</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is easier to help if you attach the full program including the data.&amp;nbsp;&amp;nbsp; I suggest you compute another variable 'GRP' that is set using the condition you have defined.&amp;nbsp; Then use GROUP=GRP on the dot plot statement.&amp;nbsp; First encountered group value will get the GRAPHDATA1 color.&amp;nbsp; If you want to have more precise control of the color, with SAS 9.3 you can use the DiscreteAttrMap to assign specific colors to specific values of the GRP variable.&amp;nbsp; See doc for details.&amp;nbsp; Here is a &lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2013/04/02/attribute-maps-1/"&gt;Blog article on DiscreteAttrMaps&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 05 Apr 2014 21:57:42 GMT</pubDate>
    <dc:creator>Jay54</dc:creator>
    <dc:date>2014-04-05T21:57:42Z</dc:date>
    <item>
      <title>Dot Plot Conditional Formatting Question</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Dot-Plot-Conditional-Formatting-Question/m-p/169085#M6288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm relatively new to SAS (Enterprise Guide 6.1), and I'm building graphs using the dot plot within PROC SGPLOT.&amp;nbsp; I'm graphing out observed to expected ratios with confidence limits based on the mean. I have everything I need so far, but want to add in conditional formatting, if possible, based on the limit range.&amp;nbsp; If the Upper Limit is below 1.0 I want it to be one color and if the Lower Limit is above 1.0 I want another.&amp;nbsp; Here's the code I have so far:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC SGPLOT DATA=WORK.SORTTempTableSorted;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refline 1.0/ lineattrs=(color=blue thickness=1.5pt) axis=x;&lt;/P&gt;&lt;P&gt;By Site;&lt;/P&gt;&lt;P&gt;&amp;nbsp; dot AttendingNPI / response=DirectCostOERatio &lt;/P&gt;&lt;P&gt;&amp;nbsp; stat=mean&lt;/P&gt;&lt;P&gt;&amp;nbsp; limitstat=clm &lt;/P&gt;&lt;P&gt;&amp;nbsp; limitattrs=(color=bib) &lt;/P&gt;&lt;P&gt;&amp;nbsp; categoryorder=respasc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; RUN;QUIT;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 15:31:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Dot-Plot-Conditional-Formatting-Question/m-p/169085#M6288</guid>
      <dc:creator>Pdothard</dc:creator>
      <dc:date>2014-04-04T15:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dot Plot Conditional Formatting Question</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Dot-Plot-Conditional-Formatting-Question/m-p/169086#M6289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is easier to help if you attach the full program including the data.&amp;nbsp;&amp;nbsp; I suggest you compute another variable 'GRP' that is set using the condition you have defined.&amp;nbsp; Then use GROUP=GRP on the dot plot statement.&amp;nbsp; First encountered group value will get the GRAPHDATA1 color.&amp;nbsp; If you want to have more precise control of the color, with SAS 9.3 you can use the DiscreteAttrMap to assign specific colors to specific values of the GRP variable.&amp;nbsp; See doc for details.&amp;nbsp; Here is a &lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2013/04/02/attribute-maps-1/"&gt;Blog article on DiscreteAttrMaps&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2014 21:57:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Dot-Plot-Conditional-Formatting-Question/m-p/169086#M6289</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2014-04-05T21:57:42Z</dc:date>
    </item>
  </channel>
</rss>

