<?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: TEMPLATE, needleplot, group, color error in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/TEMPLATE-needleplot-group-color-error/m-p/253085#M9161</link>
    <description>&lt;P&gt;I am not sure why you would use GMAP to create a needle plot. &amp;nbsp;Are you aware of the SGPLOT procedure? &amp;nbsp;Take a look at all the examples here: &amp;nbsp;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 28 Feb 2016 23:15:09 GMT</pubDate>
    <dc:creator>Jay54</dc:creator>
    <dc:date>2016-02-28T23:15:09Z</dc:date>
    <item>
      <title>TEMPLATE, needleplot, group, color error</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/TEMPLATE-needleplot-group-color-error/m-p/251963#M9116</link>
      <description>&lt;P&gt;I am receiving the following error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2586 proc template ;&lt;BR /&gt;2587 define style Styles.MyDefault ;&lt;BR /&gt;2588 parent = Styles.Default ;&lt;BR /&gt;2589 style GraphData1 from GraphData1&lt;BR /&gt;2590 / color = white&lt;BR /&gt;2591 ;&lt;BR /&gt;2592 style GraphData2 from GraphData2&lt;BR /&gt;2593 / color = blue&lt;BR /&gt;2594 ;&lt;BR /&gt;2595 style GraphData3 from GraphData3&lt;BR /&gt;2596 / color = green&lt;BR /&gt;2597 ;&lt;BR /&gt;2598 end ;&lt;BR /&gt;NOTE: Overwriting existing template/link: Styles.MyDefault&lt;BR /&gt;NOTE: STYLE 'Styles.MyDefault' has been saved to: SASUSER.TEMPLAT&lt;BR /&gt;2599 run ;&lt;BR /&gt;NOTE: PROCEDURE TEMPLATE used (Total process time):&lt;BR /&gt; real time 0.00 seconds&lt;BR /&gt; cpu time 0.00 seconds&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;2600&lt;BR /&gt;2601 proc template ;&lt;BR /&gt;2602 define statgraph needle ;&lt;BR /&gt;2603 begingraph ;&lt;BR /&gt;2604 layout overlay / cycleattrs = true ;&lt;BR /&gt;2605 needleplot x = AA&lt;BR /&gt;2606 y = y&lt;BR /&gt;2607 / group = BindingLevel&lt;BR /&gt;2608 index = binding&lt;BR /&gt;2609 lineattrs = ( color = MyDefault )&lt;BR /&gt; ---------&lt;BR /&gt; 772&lt;BR /&gt;ERROR 772-580: Syntax error: expecting a constant or a dynamic.&lt;BR /&gt;2610 ;&lt;BR /&gt;2611 endlayout ;&lt;BR /&gt;2612 endgraph ;&lt;BR /&gt;2613 end ;&lt;BR /&gt;WARNING: Object will not be saved.&lt;BR /&gt;2614 run ;&lt;BR /&gt;NOTE: PROCEDURE TEMPLATE used (Total process time):&lt;BR /&gt; real time 0.00 seconds&lt;BR /&gt; cpu time 0.00 seconds&lt;/P&gt;
&lt;P&gt;WARNING: Errors were produced.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would appreciate any reference or help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2016 06:10:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/TEMPLATE-needleplot-group-color-error/m-p/251963#M9116</guid>
      <dc:creator>KevinViel</dc:creator>
      <dc:date>2016-02-24T06:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: TEMPLATE, needleplot, group, color error</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/TEMPLATE-needleplot-group-color-error/m-p/252000#M9118</link>
      <description>&lt;P&gt;This post may help you:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-GRAPH-and-ODS-Graphics/ERROR-772-580-Syntax-error-expecting-a-constant-or-a-dynamic/td-p/86191" target="_blank"&gt;https://communities.sas.com/t5/SAS-GRAPH-and-ODS-Graphics/ERROR-772-580-Syntax-error-expecting-a-constant-or-a-dynamic/td-p/86191&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If not then I would suggest writing an SGPLOT of what you want - take the example from this excellent blog (keep the link there are many many examples of every type of graph - very useful):&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/?s=needleplot" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/?s=needleplot&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you have the sgplot statement, then use the option tmplout="c:\test.txt"...&lt;/P&gt;
&lt;P&gt;This will create a text file with the GTL template code. &amp;nbsp;I generally find its easier to get the template code generated from sgplot or one of the others, rather than trying to work it out from scratch.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2016 09:33:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/TEMPLATE-needleplot-group-color-error/m-p/252000#M9118</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-02-24T09:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: TEMPLATE, needleplot, group, color error</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/TEMPLATE-needleplot-group-color-error/m-p/252004#M9119</link>
      <description>&lt;P&gt;Hello Kevin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems like you want to use the three colours white, blue and green in your graph? One way to achieve this is to first, remove the code "lineattrs = ( color = MyDefault )". That is why you are getting the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i.e. use this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc template ;&lt;BR /&gt;&amp;nbsp; define statgraph needle ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; begingraph ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layout overlay / cycleattrs = true ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; needleplot x = AA y = y / group = BindingLevel index = binding;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endlayout;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; endgraph ;&lt;BR /&gt;&amp;nbsp; end ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* Use the code below, before your SGRENDER statement to map to the MyDefault Style that you created;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ods listing style = styles.MyDefault;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another option to get the exact colours that you want is to use attribute maps, and an example is on this blog:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2013/04/06/attributes-map-2/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2013/04/06/attributes-map-2/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2016 10:18:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/TEMPLATE-needleplot-group-color-error/m-p/252004#M9119</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2016-02-24T10:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: TEMPLATE, needleplot, group, color error</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/TEMPLATE-needleplot-group-color-error/m-p/252006#M9120</link>
      <description>&lt;P&gt;Hi Kevin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually, I've just seen that for the Needleplot you will also need to create a new "MyDefault" template, and use contrastcolor instead of color because that is what controls the colors of the lines. You may want to use another color instead of white too, so that you can see the first group. Please see below for an example.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc template ;&lt;BR /&gt;&amp;nbsp; define style Styles.MyDefault ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; parent = Styles.Default ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style GraphData1 from GraphData1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / contrastcolor = white;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style GraphData2 from GraphData2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / contrastcolor = blue;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style GraphData3 from GraphData3&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / contrastcolor = green;&lt;BR /&gt;end ;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2016 10:29:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/TEMPLATE-needleplot-group-color-error/m-p/252006#M9120</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2016-02-24T10:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: TEMPLATE, needleplot, group, color error</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/TEMPLATE-needleplot-group-color-error/m-p/252035#M9121</link>
      <description>&lt;P&gt;Kriss is right. &amp;nbsp;You cannot set the LINEATTRS COLOR suboption to the name of a style (MyDefault). &amp;nbsp;You can set it to a color value (a SAS color name like Black or Blue or CXffafbf). &amp;nbsp; Please see software documentation.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2016 13:58:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/TEMPLATE-needleplot-group-color-error/m-p/252035#M9121</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-02-24T13:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: TEMPLATE, needleplot, group, color error</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/TEMPLATE-needleplot-group-color-error/m-p/252270#M9123</link>
      <description>&lt;P&gt;Could you be more specific about the location in the "documentation"? &amp;nbsp;I have "Statistical Graphics in SAS". &amp;nbsp;I had to modify a program in my day job so I was finally able (forced) to use the TEMPLATE and SGRENDER procedures. &amp;nbsp;Spending hours trying to "break" into this, I came across the online documentation for the needle plot. &amp;nbsp;The lattice approach seemed interesting, so I thought I might attempt it for an alternative (updated) approach to GMAP, which is the topic of my upcoming PharmaSUG. &amp;nbsp;I use the SAS System as a bioinformatics tool. &amp;nbsp;GMAP provides a useful figure, but not publication quality. &amp;nbsp;FWIW, I was told that I might be relieved of the task of updating the program at work as they might farm it over to the R programmers.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 01:32:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/TEMPLATE-needleplot-group-color-error/m-p/252270#M9123</guid>
      <dc:creator>KevinViel</dc:creator>
      <dc:date>2016-02-25T01:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: TEMPLATE, needleplot, group, color error</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/TEMPLATE-needleplot-group-color-error/m-p/252271#M9124</link>
      <description>&lt;P&gt;So my updated code is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;data FVIII ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; do AA = 1 to ( 2351 - 8 ) ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; binding = ranbin( 1&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; , 2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;, 0.1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;) ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; if binding = 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; then&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; do ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;binding + 1 ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;BindingLevel = " " ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;Y = 0 ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;output ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;end ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;else if binding = 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;then&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;do ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; binding + 1 ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;BindingLevel = "&amp;lt;=WB" ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Y = 0.5 ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;output ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;end ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;else if binding = 2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;then&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;do ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;binding + 1 ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;BindingLevel = "&amp;lt;=SB" ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;Y = 1 ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;output ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;end ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;end ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;run ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;proc template ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; define style Styles.MyDefault ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; parent = Styles.Default ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; style GraphData1 from GraphData1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; / contrastcolor = white&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; style GraphData2 from GraphData2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;/ contrastcolor = blue&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; style GraphData3 from GraphData3&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;/ contrastcolor = green&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;end ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;run ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;proc template ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; define statgraph needle ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; begingraph ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; layout overlay / cycleattrs = true ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; needleplot x = AA&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;y = y&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/ group = BindingLevel&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;index = binding&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lineattrs = ( pattern = solid )&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;endlayout ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;endgraph ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; end ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;run ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ods listing style = styles.MyDefault ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;proc sgrender data &amp;nbsp; &amp;nbsp; = FVIII&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; template = needle&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;run ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The colors of the lines (needles) are not changing. &amp;nbsp;I added white instead of 0 as an exploration, since I have not yet learned how to control the range of the axis. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Originally, I was using ODS HTML so that I could produce .gifs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 01:40:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/TEMPLATE-needleplot-group-color-error/m-p/252271#M9124</guid>
      <dc:creator>KevinViel</dc:creator>
      <dc:date>2016-02-25T01:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: TEMPLATE, needleplot, group, color error</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/TEMPLATE-needleplot-group-color-error/m-p/252278#M9125</link>
      <description>&lt;P&gt;Your BindingLevel variable is getting truncated such that you are not getting all of your group values. Add this line after the DATA statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LENGTH BindingLevel $ 4;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 03:30:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/TEMPLATE-needleplot-group-color-error/m-p/252278#M9125</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2016-02-25T03:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: TEMPLATE, needleplot, group, color error</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/TEMPLATE-needleplot-group-color-error/m-p/252334#M9128</link>
      <description>&lt;P&gt;As Dan mentioned, please update the length of the bindingLevel variable. Once you do this you will get a plot similar to the attachment below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you still want to produce HTML and .gifs then you can replace the ODS listing code with the code below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics / reset = all imagefmt = gif;&lt;BR /&gt;ods html style = styles.MyDefault;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is a reference for controlling the axis in layout overlay (it's the SAS 9.2 version but will work in 9.3 and 9.4). The linearopts option within the yaxisopts option will help you to control the range.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/grstatgraph/63878/HTML/default/viewer.htm#p1iii02qgue4etn1l7fgxzr388sb.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/grstatgraph/63878/HTML/default/viewer.htm#p1iii02qgue4etn1l7fgxzr388sb.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering, do you need to use the index option in your plot? If not then you could create the graph more easier using SGPLOT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12304iC86C496F697010CB/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="SGRender1.gif" title="SGRender1.gif" /&gt;</description>
      <pubDate>Thu, 25 Feb 2016 08:49:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/TEMPLATE-needleplot-group-color-error/m-p/252334#M9128</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2016-02-25T08:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: TEMPLATE, needleplot, group, color error</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/TEMPLATE-needleplot-group-color-error/m-p/252654#M9142</link>
      <description>&lt;P&gt;Oh man! &amp;nbsp;Rookie mistake. &amp;nbsp;That's what I get for working in the evening...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you to everyone who helped. &amp;nbsp;The reason I wanted to use the TEMPLATE over the SGPLOT procedure was to gain experience and I planned to move to a lattice layout.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 04:22:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/TEMPLATE-needleplot-group-color-error/m-p/252654#M9142</guid>
      <dc:creator>KevinViel</dc:creator>
      <dc:date>2016-02-26T04:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: TEMPLATE, needleplot, group, color error</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/TEMPLATE-needleplot-group-color-error/m-p/252937#M9152</link>
      <description>&lt;P&gt;This looks good. &amp;nbsp;I think I may be able to add this to my PharmaSUG (May 2016) paper to compliment or improve upon the GMAP and ANNOTATE approach. &amp;nbsp;I can acknowledge some of the contributors to this thread, but if the others would like to be included, then please email your names.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2016 16:49:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/TEMPLATE-needleplot-group-color-error/m-p/252937#M9152</guid>
      <dc:creator>KevinViel</dc:creator>
      <dc:date>2016-02-27T16:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: TEMPLATE, needleplot, group, color error</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/TEMPLATE-needleplot-group-color-error/m-p/253058#M9158</link>
      <description>&lt;P&gt;Interestingly, in v9.3 using Windows 10, the GraphData4 appears to ignore the contrastcolor, but honors the linestyle:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;data FVIII ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; length BindingLevel $ 4 ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; do AA = 1 to ( 2351 - 8 ) ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; binding = ranbin( 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; , 2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;, 0.1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;) ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; if binding = 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; then&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; do ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;binding + 1 ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;BindingLevel = " " ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;Y = 0 ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;output ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; end ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;else if binding = 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;then&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;do ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; binding + 1 ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;BindingLevel = "&amp;lt;=WB" ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Y = 0.5 ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;output ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;end ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;else if binding = 2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;then&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;do ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;binding + 1 ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;BindingLevel = "&amp;lt;=SB" ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;Y = 1 ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;output ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;end ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;end ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;BindingLevel = "&amp;lt;=ZZ" ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;binding = 99 ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;Y = 1 ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;do AA = AA to ( 2351 ) ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;output ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; &lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;end ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;run ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;proc template ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; define style Styles.MyDefault ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; parent = Styles.Default ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; style GraphData1 from GraphData1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; / contrastcolor = white&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; linestyle = 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; style GraphData2 from GraphData2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; / contrastcolor = blue&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; linestyle = 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; style GraphData3 from GraphData3&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; / contrastcolor = red&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; linestyle = 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; style GraphData4 from GraphData4&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; / contrastcolor = grey&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; linestyle = 9&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; end ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;run ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;proc template ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; define statgraph needle ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; begingraph ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; layout overlay / cycleattrs = true ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; needleplot x = AA&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;y = y&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/ group = BindingLevel&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;index = binding&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; endlayout ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; endgraph ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; end ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;run ;&lt;/FONT&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;GOptions Reset = All&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HOrigin = 0 in&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;VOrigin = 0 in&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;VSize = 6 in&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HSize = 8 in&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ODS Graphics &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; / Reset = All&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; ImageFmt = gif&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; AntiAliasMax = 2400&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ODS Listing Close ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ODS NoResults ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ODS HTML Body = "E:\My SAS Files\9.3\SAS Listings\waste.HTML"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;GPath = "E:\My SAS Files\9.3\SAS Listings\"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Style = styles.MyDefault &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;proc sgrender data = FVIII&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; template = needle&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;run ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ODS Listing ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ODS Results ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ODS HTML Close ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I would appreciate any corrections, references or suggestions.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Thank you,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Kevin&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Feb 2016 20:02:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/TEMPLATE-needleplot-group-color-error/m-p/253058#M9158</guid>
      <dc:creator>KevinViel</dc:creator>
      <dc:date>2016-02-28T20:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: TEMPLATE, needleplot, group, color error</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/TEMPLATE-needleplot-group-color-error/m-p/253063#M9159</link>
      <description>&lt;P&gt;You are using INDEX option and the value for the "&amp;lt;=ZZ" is 99. &amp;nbsp;So, you get the color you are requesting, probably 99 mod 4. &amp;nbsp;Also, you have many missing values for group. &amp;nbsp;I removed&amp;nbsp;"INDEX" and used&amp;nbsp;"INCLUDEMISSINGGROUP=False, skipped the last 4 observations that are causing the last needle to look thick and used&amp;nbsp;the default LISTING destination. Added legend.&lt;/P&gt;
&lt;P&gt;Here is what I get:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/2086i602B1C314A2889B8/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Needle.png" title="Needle.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Feb 2016 20:33:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/TEMPLATE-needleplot-group-color-error/m-p/253063#M9159</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-02-28T20:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: TEMPLATE, needleplot, group, color error</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/TEMPLATE-needleplot-group-color-error/m-p/253070#M9160</link>
      <description>&lt;P&gt;Great! &amp;nbsp;Thanks, Sanjay. &amp;nbsp;The final values are relevant, more will appear, but I wanted to demarcate them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a great deal less work than GMAP and ANNOTATE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Sun, 28 Feb 2016 21:37:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/TEMPLATE-needleplot-group-color-error/m-p/253070#M9160</guid>
      <dc:creator>KevinViel</dc:creator>
      <dc:date>2016-02-28T21:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: TEMPLATE, needleplot, group, color error</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/TEMPLATE-needleplot-group-color-error/m-p/253085#M9161</link>
      <description>&lt;P&gt;I am not sure why you would use GMAP to create a needle plot. &amp;nbsp;Are you aware of the SGPLOT procedure? &amp;nbsp;Take a look at all the examples here: &amp;nbsp;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Feb 2016 23:15:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/TEMPLATE-needleplot-group-color-error/m-p/253085#M9161</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-02-28T23:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: TEMPLATE, needleplot, group, color error</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/TEMPLATE-needleplot-group-color-error/m-p/253118#M9162</link>
      <description>&lt;P&gt;I am coming late to SG, even though I bought Kuhfield's book at PharmaSUG (2012?). &amp;nbsp;I saw an example of a Heat Map created with GMAP, that I think I saw on Allison's excellent repository (&lt;A href="http://robslink.com/SAS/Home.htm)." target="_blank"&gt;http://robslink.com/SAS/Home.htm).&lt;/A&gt; &amp;nbsp;Having some experience with the ANNOTATE facility, I was able to adapt it. &amp;nbsp;I can see better standardization using SG procedures. &amp;nbsp;I am looking forward to upgrading to v9.4 so that I have AXISTABLE and SGANNO.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have not been able to muster a trip to SGF, but I think I am one of the few using SAS in bioinformatics at PharmaSUG. &amp;nbsp;I have figuratively been stiff armed by programmers for clients who have said "if you want to work in bioinformatics, then you need to work in R". &amp;nbsp;I have attempted to point out that I am not downloading modules, rather, I am writing the code. &amp;nbsp;Thankfully, I have an evening gig in which I have the freedom to choose my software. &amp;nbsp;These maps have already been included in talks with medical directors and higher ranking scientists, not to mention our ASH 2015 poster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am grateful for your help and that of SAS Communities. &amp;nbsp;Our focus is on inhibitors in Hemophilia A patients, so it we are making a difference to these patients and their families.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Mon, 29 Feb 2016 03:22:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/TEMPLATE-needleplot-group-color-error/m-p/253118#M9162</guid>
      <dc:creator>KevinViel</dc:creator>
      <dc:date>2016-02-29T03:22:33Z</dc:date>
    </item>
  </channel>
</rss>

