<?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: Needle sgplot in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Needle-sgplot/m-p/566223#M159091</link>
    <description>Try adding a GROUP and specify the GROUPDISPLAY as cluster. If you want to control the colours, look at a data attribute map.</description>
    <pubDate>Fri, 14 Jun 2019 16:06:41 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-06-14T16:06:41Z</dc:date>
    <item>
      <title>Needle sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Needle-sgplot/m-p/566219#M159090</link>
      <description>&lt;P&gt;I have prepared a needle graph using sgplot.&amp;nbsp; The graph is okay&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title 'Confidence Interval Range ';
proc sgplot data=boot2 ;
  /*highlow x=ratio low=low high=high / type=line;*/
  highlow x=ratio low=lower_ci high=upper_ci / type=bar  
          lineattrs=(color=black) name='a' attrid=Mono;
  yaxis label='CI range' grid;
  xaxis label='Ratio KaT/KaR' grid values =(0.5 to 2.1 by 0.1);
    keylegend 'a' / location=inside position=bottom;
  run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and includes my variables CI range and ratio.&amp;nbsp; However the data set (boot2) has block which I use to categorize my data.&amp;nbsp; All blocks currently appear in the graph.&amp;nbsp; My question is there a way to annotate and change the code to allow either the color or line types based upon block to be represented more clearly in the graph?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A sample of data is below containing my variables.&lt;/P&gt;&lt;P&gt;Group Block Upper_CI Lower_CI Ratio&lt;BR /&gt;1 0 84 80 0.62&lt;BR /&gt;1 0 85 81 0.63&lt;BR /&gt;1 0 88 85 0.7&lt;BR /&gt;1 0 100 99 0.8&lt;BR /&gt;1 0 108 106 1.25&lt;BR /&gt;1 0 109 106 1.3&lt;BR /&gt;1 0 113 109 1.5&lt;BR /&gt;1 0 122 115 2&lt;BR /&gt;1 0 125 116 2.1&lt;BR /&gt;1 1 104 102 0.62&lt;BR /&gt;1 1 104 101 0.63&lt;BR /&gt;1 1 104 101 0.7&lt;BR /&gt;1 1 90 88 0.8&lt;BR /&gt;1 1 98 96 1.25&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 15:56:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Needle-sgplot/m-p/566219#M159090</guid>
      <dc:creator>jacksonan123</dc:creator>
      <dc:date>2019-06-14T15:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Needle sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Needle-sgplot/m-p/566223#M159091</link>
      <description>Try adding a GROUP and specify the GROUPDISPLAY as cluster. If you want to control the colours, look at a data attribute map.</description>
      <pubDate>Fri, 14 Jun 2019 16:06:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Needle-sgplot/m-p/566223#M159091</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-06-14T16:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Needle sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Needle-sgplot/m-p/566231#M159093</link>
      <description>I am only plotting one group at a time so the distinguishing variable would&lt;BR /&gt;be block for me not group.&lt;BR /&gt;&lt;BR /&gt;How should this be done since I tried as an interaction (i.e., ratio*block)&lt;BR /&gt;and ratio(block) and got an error?&lt;BR /&gt;&lt;BR /&gt;I found this on line related to cluster. If I use this code will I need to&lt;BR /&gt;redefine my blocks?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;proc sgplot data=sashelp.cars;&lt;BR /&gt;&lt;BR /&gt;where type ne 'Hybrid';&lt;BR /&gt;&lt;BR /&gt;vbar type / response=mpg_city stat=mean group=origin groupdisplay=cluster&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Jun 2019 16:29:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Needle-sgplot/m-p/566231#M159093</guid>
      <dc:creator>jacksonan123</dc:creator>
      <dc:date>2019-06-14T16:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Needle sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Needle-sgplot/m-p/566241#M159098</link>
      <description>GROUP is referencing the term from SGPLOT, nothing to do with your actual data. &lt;BR /&gt;&lt;BR /&gt; highlow x=ratio low=lower_ci high=upper_ci / type=bar  group = block groupdisplay=cluster&lt;BR /&gt;          lineattrs=(color=black) name='a' attrid=Mono;&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Jun 2019 17:03:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Needle-sgplot/m-p/566241#M159098</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-06-14T17:03:09Z</dc:date>
    </item>
  </channel>
</rss>

