<?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 / multiple rows in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/TEMPLATE-NEEDLEPLOT-multiple-rows/m-p/256782#M13562</link>
    <description>&lt;P&gt;My first approach if I needed similar plots for each level of a variable would be to get the plot working for one level and then sort the data by the variables that are needed for each level and use a BY statement;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgrender data=have template=templatename;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; by levelvar;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;other options&amp;gt;;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Mar 2016 14:19:52 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-03-15T14:19:52Z</dc:date>
    <item>
      <title>TEMPLATE / NEEDLEPLOT / multiple rows</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/TEMPLATE-NEEDLEPLOT-multiple-rows/m-p/256754#M13558</link>
      <description>&lt;P&gt;I created a forest plot with multiple rows for a data set with several outcomes. &amp;nbsp;For another task, I wish to have several needle plots for each level of a variable GROUP. &amp;nbsp;The do I need multiple LAYOUT statements:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;layout overlay ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; needleplot x = AA&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; y = HLA_y1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/ group = HLA_BindingLevel1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;index = HLA_binding1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lineattrs = ( pattern = solid )&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;;&lt;BR /&gt; endlayout ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;layout overlay ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; needleplot x = AA&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; y = HLA_y2&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/ group = HLA_BindingLevel2&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;index = HLA_binding2&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lineattrs = ( pattern = solid )&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;;&lt;BR /&gt;endlayout ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or am I missing something and I should be able to concatenate the data into rows instead of columns and have one such statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;layout overlay ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; needleplot x = AA&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; y = HLA_y&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/ group = HLA_BindingLevel&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;index = HLA_binding&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lineattrs = ( pattern = solid )&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;;&lt;BR /&gt;endlayout ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to include AXISTABle statements, too, to provide summary details such as the name of the row and the number of needles above a threshold.&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>Tue, 15 Mar 2016 12:46:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/TEMPLATE-NEEDLEPLOT-multiple-rows/m-p/256754#M13558</guid>
      <dc:creator>KevinViel</dc:creator>
      <dc:date>2016-03-15T12:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: TEMPLATE / NEEDLEPLOT / multiple rows</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/TEMPLATE-NEEDLEPLOT-multiple-rows/m-p/256782#M13562</link>
      <description>&lt;P&gt;My first approach if I needed similar plots for each level of a variable would be to get the plot working for one level and then sort the data by the variables that are needed for each level and use a BY statement;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgrender data=have template=templatename;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; by levelvar;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;other options&amp;gt;;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 14:19:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/TEMPLATE-NEEDLEPLOT-multiple-rows/m-p/256782#M13562</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-03-15T14:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: TEMPLATE / NEEDLEPLOT / multiple rows</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/TEMPLATE-NEEDLEPLOT-multiple-rows/m-p/256845#M13570</link>
      <description>&lt;P&gt;With the disclaimer that I have not tested your code, I need the needleplot stacked for comparison. &amp;nbsp;A draft&amp;nbsp;is attached. &amp;nbsp;For the GMAP version of these maps, I stacked 40 different rows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This graph was created with multiple LAYOUT statements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12382i5CCC7EDF76F69E40/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="SGRender.gif" title="SGRender.gif" /&gt;</description>
      <pubDate>Tue, 15 Mar 2016 16:44:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/TEMPLATE-NEEDLEPLOT-multiple-rows/m-p/256845#M13570</guid>
      <dc:creator>KevinViel</dc:creator>
      <dc:date>2016-03-15T16:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: TEMPLATE / NEEDLEPLOT / multiple rows</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/TEMPLATE-NEEDLEPLOT-multiple-rows/m-p/256854#M13571</link>
      <description>&lt;P&gt;You have a couple of options for the basic graph. One would be DATAPANEL:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;layout datapanel classvars=(classificationvariable) /  ROWS=3&lt;BR /&gt;    &amp;lt;other datapanel options&amp;gt;;
   layout prototype;
        &amp;lt;needleplot stuff goes here&amp;gt;
    endlayout;
endlayout;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can actually specify numbers of rows and columns to get side-by-side and stacked. By default each panel of the graph will have a header like "ClassificationVariable= Level of Variable" and will display the formatted value if you specify a format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To provide number of needles it may be easiest to presummarize the data and have a variable with one value per classification level with the value and use an INSET option on the datapanel statement and INSETOPTS to control where in the plot it appears.&lt;/P&gt;
&lt;P&gt;If you have lots of rows you will also likely have to increase the amount of space available to display everything by adjusting the ODS height option:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods graphics /height=15in; or similar.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have exactly 2 classification variables you could use DATALATTICE.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 17:18:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/TEMPLATE-NEEDLEPLOT-multiple-rows/m-p/256854#M13571</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-03-15T17:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: TEMPLATE / NEEDLEPLOT / multiple rows</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/TEMPLATE-NEEDLEPLOT-multiple-rows/m-p/256941#M13579</link>
      <description>&lt;P&gt;OhOh. It is about ODS Graphics, Plz post it at&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A class="" href="https://communities.sas.com/t5/SAS-GRAPH-and-ODS-Graphics/bd-p/sas_graph" target="_blank"&gt;SAS/GRAPH and ODS Graphics&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 02:26:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/TEMPLATE-NEEDLEPLOT-multiple-rows/m-p/256941#M13579</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-03-16T02:26:14Z</dc:date>
    </item>
  </channel>
</rss>

