<?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: Fun w/SAS ODS Graphics: There's more than one way to skin a SAS dataviz in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Fun-w-SAS-ODS-Graphics-There-s-more-than-one-way-to-skin-a-SAS/m-p/402483#M13764</link>
    <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4628"&gt;@tc&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nice work!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Now, how about someone coughing up a SAS Visual Analytics-based version so we can complete the trilogy?"&lt;/P&gt;
&lt;P&gt;Challenge accepted! I'll pull something in VA and share with the community &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Renato&lt;/P&gt;</description>
    <pubDate>Mon, 09 Oct 2017 19:19:16 GMT</pubDate>
    <dc:creator>Renato_sas</dc:creator>
    <dc:date>2017-10-09T19:19:16Z</dc:date>
    <item>
      <title>Fun w/SAS ODS Graphics: There's more than one way to skin a SAS dataviz</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-w-SAS-ODS-Graphics-There-s-more-than-one-way-to-skin-a-SAS/m-p/401612#M13717</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RefugeeAdmissions.png" style="width: 364px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15647i1E6BE11D7BCA85BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="RefugeeAdmissions.png" alt="RefugeeAdmissions.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As I copped to in an &lt;A href="http://support.sas.com/resources/papers/proceedings11/220-2011.pdf" target="_self"&gt;old SGF paper&lt;/A&gt;, I'm not adverse to "borrowing" from Robert Allison's amazing-and-ever-growing &lt;A href="http://robslink.com/SAS/" target="_self"&gt;SAS dataviz collection&lt;/A&gt;. So, when the idea of trying to implement Robert's SAS/GRAPH-based &lt;A href="https://blogs.sas.com/content/sastraining/2017/10/03/trends-in-u-s-refugee-admissions/" target="_self"&gt;Trends in U.S. refugee admissions&lt;/A&gt; chart with SGPANEL was floated, well, I just had to give it a shot. Results above, code below. Not a replica, admittedly. With his uniscaled-but-not-space-wasting y-axes, consistent color usage, floating country labels, custom x-axis labels at the top and bottom, etc., Robert's chart is far more nuanced. Still, the SGPLOT version may be good enough for many people's purposes, and doesn't require much work. So, which way to go probably boils down to an &lt;A href="http://asq.org/healthcare-use/why-quality/impact-effort.html" target="_self"&gt;impact-vs-effort&lt;/A&gt; decision on your part (and which software you have access to!). Now, how about someone coughing up a SAS Visual Analytics-based version so we can complete the trilogy? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* Fun w/SAS ODS Graphics: SGPLOT take on SAS/GRAPH-based "Trends in U.S. refugee admissions" chart
  Based on SAS/GRAPH chart at blogs.sas.com/content/sastraining/2017/10/03/trends-in-u-s-refugee-admissions/
  Data sourced from wrapsnet.org/s/Graph-Refugee-Admissions-since-19759517.xls;

*==&amp;gt; Step 1: Get Excel data, transform it from Excel chart structure to relational;

proc import out=Admissions dbms=xls replace
            datafile ='/folders/myfolders/Graph+Refugee+Admissions+since+1975(9.5.17).xls';
            getnames=no; range="FY 1975-2017$A10:K52";
            
data AdmissionsNorm(keep=year country refugees);
array countries (8) $30. _temporary_ ("Africa" "Asia" "Europe" "Former Soviet Union" 
      "Kosovo" "Latin American Caribbean" "Near East South Asia" "PSI");
array numrefugees (8) b c e f g h i j;
set admissions;
year=a;
do sub=1 to 8;
  country=countries(sub);
  refugees=numrefugees(sub);
  output;
end;   

*==&amp;gt; Step 2: Produce the paneled chart!;

ods graphics / antialias height=14in width=8.5in;
proc sgpanel noautolegend;
title  height=12pt "U.S. Refugee Admissions by Region";
title2 height=10pt "Fiscal Year 1975 through Aug 31, 2017 (FY ends Sep 30)";
panelby country / onepanel uniscale=column noheader columns=1 spacing=3;
vbar year / response=refugees group=country transparency=.4;
inset country / nolabel textattrs=(size=14pt) position=topright;
colaxis display=(nolabel) grid valueattrs=(size=7pt) valuesrotate=vertical;
rowaxis display=(nolabel) grid valuesformat=comma11. valueattrs=(size=7pt); 
refline (1975 to 2015 by 5) / axis=x;
footnote height=8pt "Data source: Refugee Processing Center (wrapsnet.org/admissions-and-arrivals/)";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 05:21:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-w-SAS-ODS-Graphics-There-s-more-than-one-way-to-skin-a-SAS/m-p/401612#M13717</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2017-10-06T05:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Fun w/SAS ODS Graphics: There's more than one way to skin a SAS dataviz</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-w-SAS-ODS-Graphics-There-s-more-than-one-way-to-skin-a-SAS/m-p/401923#M13744</link>
      <description>&lt;P&gt;Nicely done, TC.&amp;nbsp; You have specified UNISCALE=column. It is also useful to keep the default view so each cell y-axis is uniform, allowing visual comparison of the values.&amp;nbsp; I like your usage of INSET for the class values suppressing the row header.&amp;nbsp; Easier to read.&amp;nbsp; I was happy to learn some data step coding using arrays, as used by you.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 20:28:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-w-SAS-ODS-Graphics-There-s-more-than-one-way-to-skin-a-SAS/m-p/401923#M13744</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-10-06T20:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Fun w/SAS ODS Graphics: There's more than one way to skin a SAS dataviz</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-w-SAS-ODS-Graphics-There-s-more-than-one-way-to-skin-a-SAS/m-p/402483#M13764</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4628"&gt;@tc&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nice work!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Now, how about someone coughing up a SAS Visual Analytics-based version so we can complete the trilogy?"&lt;/P&gt;
&lt;P&gt;Challenge accepted! I'll pull something in VA and share with the community &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Renato&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 19:19:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-w-SAS-ODS-Graphics-There-s-more-than-one-way-to-skin-a-SAS/m-p/402483#M13764</guid>
      <dc:creator>Renato_sas</dc:creator>
      <dc:date>2017-10-09T19:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Fun w/SAS ODS Graphics: There's more than one way to skin a SAS dataviz</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-w-SAS-ODS-Graphics-There-s-more-than-one-way-to-skin-a-SAS/m-p/405834#M13861</link>
      <description>&lt;P&gt;Done! You can find the VA version &lt;A href="https://communities.sas.com/t5/SAS-Visual-Analytics/Fun-with-SAS-Visual-Analytics-Graphics-Challenge-accepted/td-p/405796" target="_blank"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 00:12:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-w-SAS-ODS-Graphics-There-s-more-than-one-way-to-skin-a-SAS/m-p/405834#M13861</guid>
      <dc:creator>Renato_sas</dc:creator>
      <dc:date>2017-10-20T00:12:16Z</dc:date>
    </item>
  </channel>
</rss>

