<?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 SG procedures represent TABLE into an image form in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SG-procedures-represent-TABLE-into-an-image-form/m-p/128551#M5014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saw in one of the post from Cynthia talking about the new SG procedures can represent TABLE by equivalent image form. I googled this online, but I didn't find any information about this. I am wondering if there is anyone can help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Nov 2012 15:50:26 GMT</pubDate>
    <dc:creator>Snowy101</dc:creator>
    <dc:date>2012-11-16T15:50:26Z</dc:date>
    <item>
      <title>SG procedures represent TABLE into an image form</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SG-procedures-represent-TABLE-into-an-image-form/m-p/128551#M5014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saw in one of the post from Cynthia talking about the new SG procedures can represent TABLE by equivalent image form. I googled this online, but I didn't find any information about this. I am wondering if there is anyone can help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2012 15:50:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SG-procedures-represent-TABLE-into-an-image-form/m-p/128551#M5014</guid>
      <dc:creator>Snowy101</dc:creator>
      <dc:date>2012-11-16T15:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: SG procedures represent TABLE into an image form</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SG-procedures-represent-TABLE-into-an-image-form/m-p/128552#M5015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This may be what you are referring to:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="2717" alt="Weather_Table_Bands.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/2717_Weather_Table_Bands.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The purpose is to create a graph with axis aligned table columns like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="2718" alt="Weather_Table_Graph.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/2718_Weather_Table_Graph.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code using SGPLOT procedure:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%let gpath='C:\';&lt;/P&gt;&lt;P&gt;data weatherTable;&lt;BR /&gt;&amp;nbsp; input Month $ high low precip;&lt;BR /&gt;&amp;nbsp; highC = (high-32) / 1.8;&lt;BR /&gt;&amp;nbsp; lowC&amp;nbsp; = (low-32) / 1.8;&lt;BR /&gt;&amp;nbsp; label high= 'Fahrenheit';&lt;BR /&gt;&amp;nbsp; label low = 'Fahrenheit';&lt;BR /&gt;&amp;nbsp; label highc='Celsius';&lt;BR /&gt;&amp;nbsp; label lowc= 'Celsius';&lt;BR /&gt;&amp;nbsp; label precip= 'Precipitation (in)';&lt;BR /&gt;&amp;nbsp; format high low 2.0;&lt;BR /&gt;&amp;nbsp; format highc lowc precip 4.1;&lt;BR /&gt;&amp;nbsp; x1='High(F)'; x2='Low(F)'; x3='High(C)'; x4='Low(C)'; x5='Precip(in)';&lt;BR /&gt;&amp;nbsp; id=_n_;&lt;BR /&gt;&amp;nbsp; if mod(id, 2)=0 then ref=month;&lt;BR /&gt;&amp;nbsp; datalines; &lt;BR /&gt;Jan&amp;nbsp;&amp;nbsp;&amp;nbsp; 49&amp;nbsp;&amp;nbsp; 30&amp;nbsp; 4.46&lt;BR /&gt;Feb&amp;nbsp;&amp;nbsp;&amp;nbsp; 53&amp;nbsp;&amp;nbsp; 32&amp;nbsp; 3.53&lt;BR /&gt;Mar&amp;nbsp;&amp;nbsp;&amp;nbsp; 61&amp;nbsp;&amp;nbsp; 40&amp;nbsp; 4.46&lt;BR /&gt;Apr&amp;nbsp;&amp;nbsp;&amp;nbsp; 71&amp;nbsp;&amp;nbsp; 48&amp;nbsp; 2.98&lt;BR /&gt;May&amp;nbsp;&amp;nbsp;&amp;nbsp; 78&amp;nbsp;&amp;nbsp; 57&amp;nbsp; 4.03&lt;BR /&gt;Jun&amp;nbsp;&amp;nbsp;&amp;nbsp; 84&amp;nbsp;&amp;nbsp; 65&amp;nbsp; 4.06&lt;BR /&gt;Jul&amp;nbsp;&amp;nbsp;&amp;nbsp; 88&amp;nbsp;&amp;nbsp; 69&amp;nbsp; 4.35&lt;BR /&gt;Aug&amp;nbsp;&amp;nbsp;&amp;nbsp; 86&amp;nbsp;&amp;nbsp; 68&amp;nbsp; 4.30&lt;BR /&gt;Sep&amp;nbsp;&amp;nbsp;&amp;nbsp; 80&amp;nbsp;&amp;nbsp; 62&amp;nbsp; 4.27&lt;BR /&gt;Oct&amp;nbsp;&amp;nbsp;&amp;nbsp; 70&amp;nbsp;&amp;nbsp; 49&amp;nbsp; 3.28&lt;BR /&gt;Nov&amp;nbsp;&amp;nbsp;&amp;nbsp; 61&amp;nbsp;&amp;nbsp; 42&amp;nbsp; 3.06&lt;BR /&gt;Dec&amp;nbsp;&amp;nbsp;&amp;nbsp; 52&amp;nbsp;&amp;nbsp; 33&amp;nbsp; 3.25&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc sort data=weatherTable out=weatherTable2;&lt;BR /&gt;&amp;nbsp; by descending id;&lt;BR /&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;ods html style=listing;&lt;BR /&gt;proc print data=weatherTable(obs=10) noobs;run;&lt;BR /&gt;ods html close;&lt;/P&gt;&lt;P&gt;ods listing gpath=&amp;amp;gpath style=htmlblue image_dpi=200;&lt;/P&gt;&lt;P&gt;proc template; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; define style Styles.HtmlblueSF;&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;&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; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parent = styles.Htmlblue;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style GraphFonts from GraphFonts /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'GraphDataFont' = ("&amp;lt;sans-serif&amp;gt;, &amp;lt;MTsans-serif&amp;gt;",8pt)&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'GraphValueFont' = ("&amp;lt;sans-serif&amp;gt;, &amp;lt;MTsans-serif&amp;gt;",8pt);&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;/*--Table--*/&lt;BR /&gt;ods listing style=Styles.HtmlblueSF;&lt;BR /&gt;ods graphics / reset width=4in height=2.5in imagename='Weather_Table';&lt;BR /&gt;title "Average Temperatures for Raleigh";&lt;BR /&gt;proc sgplot data=weatherTable2 noautolegend;&lt;BR /&gt;&amp;nbsp; scatter y=month x=x1 / markerchar=high x2axis;&lt;BR /&gt;&amp;nbsp; scatter y=month x=x2 / markerchar=low x2axis;&lt;BR /&gt;&amp;nbsp; scatter y=month x=x3 / markerchar=highc x2axis;&lt;BR /&gt;&amp;nbsp; scatter y=month x=x4 / markerchar=lowc x2axis;&lt;BR /&gt;&amp;nbsp; scatter y=month x=x5 / markerchar=precip x2axis;&lt;BR /&gt;&amp;nbsp; x2axis display=(noticks nolabel) offsetmin=0.1 offsetmax=0.1;&lt;BR /&gt;&amp;nbsp; yaxis display=(nolabel noticks) offsetmin=0.05 offsetmax=0.05; &lt;BR /&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;/*--Table with bands--*/&lt;BR /&gt;ods listing style=Styles.HtmlblueSF;&lt;BR /&gt;ods graphics / reset width=4in height=2.5in imagename='Weather_Table_Bands';&lt;BR /&gt;title "Average Temperatures for Raleigh";&lt;BR /&gt;proc sgplot data=weatherTable2 noautolegend;&lt;BR /&gt;&amp;nbsp; refline ref / lineattrs=(thickness=20) transparency=0.8;&lt;BR /&gt;&amp;nbsp; scatter y=month x=x1 / markerchar=high x2axis;&lt;BR /&gt;&amp;nbsp; scatter y=month x=x2 / markerchar=low x2axis;&lt;BR /&gt;&amp;nbsp; scatter y=month x=x3 / markerchar=highc x2axis;&lt;BR /&gt;&amp;nbsp; scatter y=month x=x4 / markerchar=lowc x2axis;&lt;BR /&gt;&amp;nbsp; scatter y=month x=x5 / markerchar=precip x2axis;&lt;BR /&gt;&amp;nbsp; x2axis display=(noticks nolabel) offsetmin=0.1 offsetmax=0.1;&lt;BR /&gt;&amp;nbsp; yaxis display=(nolabel noticks) offsetmin=0.05 offsetmax=0.05; &lt;BR /&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;/*--Graph with Table--*/&lt;BR /&gt;ods listing style=Styles.HtmlblueSF;&lt;BR /&gt;ods graphics / reset width=4in height=2.5in imagename='Weather_Table_Graph';&lt;BR /&gt;title "Average Temperatures Range for Raleigh";&lt;BR /&gt;proc sgplot data=weatherTable2 noautolegend;&lt;BR /&gt;&amp;nbsp; refline ref / lineattrs=(thickness=18) transparency=0.9;&lt;BR /&gt;&amp;nbsp; band y=month lower=low upper=high / transparency=0.6; &lt;BR /&gt;&amp;nbsp; scatter y=month x=high / markerattrs=graphdata2(symbol=circlefilled) transparency=0.4;&lt;BR /&gt;&amp;nbsp; scatter y=month x=low / markerattrs=graphdata1(symbol=trianglefilled) transparency=0.4;&lt;BR /&gt;&amp;nbsp; scatter y=month x=x2 / markerchar=low x2axis;&lt;BR /&gt;&amp;nbsp; scatter y=month x=x1 / markerchar=high x2axis;&lt;BR /&gt;&amp;nbsp; xaxis&amp;nbsp; display=(nolabel) grid offsetmin=0.1 offsetmax=0.3;&lt;BR /&gt;&amp;nbsp; x2axis display=(noticks nolabel) offsetmin=0.8 offsetmax=0.08;&lt;BR /&gt;&amp;nbsp; yaxis display=(nolabel noticks) offsetmin=0.05 offsetmax=0.05; &lt;BR /&gt;&amp;nbsp; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2012 16:22:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SG-procedures-represent-TABLE-into-an-image-form/m-p/128552#M5015</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2012-11-16T16:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: SG procedures represent TABLE into an image form</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SG-procedures-represent-TABLE-into-an-image-form/m-p/128553#M5016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjay,&lt;/P&gt;&lt;P&gt;I am sorry for this very late reply. This is exactly what I am looking for, thank you for your efforts!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 21:44:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SG-procedures-represent-TABLE-into-an-image-form/m-p/128553#M5016</guid>
      <dc:creator>Snowy101</dc:creator>
      <dc:date>2013-03-07T21:44:11Z</dc:date>
    </item>
  </channel>
</rss>

