<?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 Separator bars in a datalattice in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Separator-bars-in-a-datalattice/m-p/8070#M11</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sanjay.&amp;nbsp; Once I have the gap between graphs created by setting a columngutter, is there any way I can fill it with a colored bar as in the original example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using TS2 M0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally I would like to maintain the appearance of a continuous x-axis (instead of breaking into 3 "separate" graphs) with separator bars, but if it is not possible in the installed release of SAS then I am open to exploring other possibilities.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Sep 2011 22:39:41 GMT</pubDate>
    <dc:creator>Nobody</dc:creator>
    <dc:date>2011-09-13T22:39:41Z</dc:date>
    <item>
      <title>Separator bars in a datalattice</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Separator-bars-in-a-datalattice/m-p/8066#M7</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;I would like to insert these separator bars into an existing graph produced using proc template with a layout datalattice to get two different x-axis variables.&amp;nbsp; I have tried using a reference line at x=0 for the middle and right side graph but that distorts the tick mark spacing along the x-axis.&amp;nbsp; Can you offer any suggestions on how this might be accomplished? &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;IMG alt="graph.JPG" class="jive-image-thumbnail jive-image" onclick="" src="https://communities.sas.com/legacyfs/online/1126_graph.JPG" width="450" /&gt;&lt;SPAN style="font-family: %value;"&gt;Thank you for your help.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 18:19:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Separator-bars-in-a-datalattice/m-p/8066#M7</guid>
      <dc:creator>Nobody</dc:creator>
      <dc:date>2011-09-13T18:19:40Z</dc:date>
    </item>
    <item>
      <title>Separator bars in a datalattice</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Separator-bars-in-a-datalattice/m-p/8067#M8</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Couldn't you just use annotate to add the desired grey lines?&amp;nbsp; For example code take a look at:&lt;/P&gt;&lt;P&gt;&lt;A href="http://robslink.com/SAS/democd18/insur.sas"&gt;http://robslink.com/SAS/democd18/insur.sas&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 18:47:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Separator-bars-in-a-datalattice/m-p/8067#M8</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-09-13T18:47:37Z</dc:date>
    </item>
    <item>
      <title>Separator bars in a datalattice</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Separator-bars-in-a-datalattice/m-p/8068#M9</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Art - (almost) all of my examples use the traditional SAS/Graph procs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately the new GTL-based procs (proc template, etc) would not be able to leverage any of my traditional code or the "tricks" that I typically use to customize my graphs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 18:55:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Separator-bars-in-a-datalattice/m-p/8068#M9</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2011-09-13T18:55:32Z</dc:date>
    </item>
    <item>
      <title>Separator bars in a datalattice</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Separator-bars-in-a-datalattice/m-p/8069#M10</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DataLattice normally draws outlines around the cells tha the cell headers.&amp;nbsp; So, you have already used the options to suppress this.&amp;nbsp; DataLattice supports COLUMNGUTTER=value.&amp;nbsp; You can use this to increase separation betrween the cells (unless you want the appearance of a continuous X axis line).&amp;nbsp; Which SAS 9.2 &lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;maintenance &lt;/SPAN&gt;release are you using&amp;nbsp; (TS2 M?) ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 19:07:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Separator-bars-in-a-datalattice/m-p/8069#M10</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2011-09-13T19:07:02Z</dc:date>
    </item>
    <item>
      <title>Separator bars in a datalattice</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Separator-bars-in-a-datalattice/m-p/8070#M11</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sanjay.&amp;nbsp; Once I have the gap between graphs created by setting a columngutter, is there any way I can fill it with a colored bar as in the original example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using TS2 M0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally I would like to maintain the appearance of a continuous x-axis (instead of breaking into 3 "separate" graphs) with separator bars, but if it is not possible in the installed release of SAS then I am open to exploring other possibilities.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 22:39:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Separator-bars-in-a-datalattice/m-p/8070#M11</guid>
      <dc:creator>Nobody</dc:creator>
      <dc:date>2011-09-13T22:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Separator bars in a datalattice</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Separator-bars-in-a-datalattice/m-p/8071#M12</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the natural behavior of DATALATTICE in GTL (or PROC SGPANEL), you get the graph shown earlier.&amp;nbsp; That will work without special intervention for different data.&amp;nbsp; &lt;/P&gt;&lt;P&gt;No, you cannot color just the gutter in a different color.&amp;nbsp; However, you can achieve most of the look you want by using a UDF with the data and customizing the graph as shown below.&amp;nbsp; I cannot think of a way to extend the reference lines in to area below the X axis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="1134" alt="Grid_Plot.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/1134_Grid_Plot.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;&amp;nbsp; value grid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,5,9 ='XXX'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2,6,10='YYY'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3,7,11='ZZZ'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; other=' ';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data grid2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format cat grid.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do Cat=1 to 11;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if cat=4 or cat=8 then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value=.; upper=.; lower=.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value=5*ranuni(2)-2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; upper=value+value*ranuni(2);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lower=value-value*ranuni(2);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc print;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods listing;&lt;/P&gt;&lt;P&gt;ods graphics / reset width=6in height=4in imagename='Grid_Plot';&lt;/P&gt;&lt;P&gt;proc sgplot data=grid2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; scatter x=cat y=value / yerrorupper=upper yerrorlower=lower;&lt;/P&gt;&lt;P&gt;&amp;nbsp; refline 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; refline 4 8 / axis=x lineattrs=(thickness=10) transparency=0.7;&lt;/P&gt;&lt;P&gt;&amp;nbsp; xaxis label='Peak FEV1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12 Hour FEV1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 24 Hour FEV1'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; values=(1 2 3 5 6 7 9 10 11) offsetmin=0.08 offsetmax=0.08;&lt;/P&gt;&lt;P&gt;&amp;nbsp; yaxis label='Treatment Difference of LS Mean and 95% CL (ml)';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 04:51:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Separator-bars-in-a-datalattice/m-p/8071#M12</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2011-09-14T04:51:13Z</dc:date>
    </item>
  </channel>
</rss>

