<?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/ODS Graphics: Q. Why join the City of Chicago's IT Dept? A. Because that's where the money in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Fun-w-ODS-Graphics-Q-Why-join-the-City-of-Chicago-s-IT-Dept-A/m-p/306018#M10747</link>
    <description>&lt;P&gt;Very nice. &amp;nbsp;With SAS 9.4, you can now use the y-axis option&amp;nbsp;&lt;STRONG&gt;SplitPolicy=split&lt;/STRONG&gt; to avoid long&amp;nbsp;y-axis tick values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgplot data=sashelp.heart;&lt;BR /&gt;&amp;nbsp; hbar deathcause / response=systolic stat=mean;&lt;BR /&gt;&amp;nbsp; yaxis fitpolicy=split;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/5387i53DCC033ABBC1034/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Split_Y_Axis_Values.png" title="Split_Y_Axis_Values.png" /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Oct 2016 17:39:55 GMT</pubDate>
    <dc:creator>Jay54</dc:creator>
    <dc:date>2016-10-20T17:39:55Z</dc:date>
    <item>
      <title>Fun w/ODS Graphics: Q. Why join the City of Chicago's IT Dept? A. Because that's where the money is!</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-w-ODS-Graphics-Q-Why-join-the-City-of-Chicago-s-IT-Dept-A/m-p/288286#M10193</link>
      <description>&lt;P&gt;&lt;STRONG&gt;IMAGE&lt;/STRONG&gt; (reduced to 25% size of original, resulting in loss of resolution)&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4340i70EFE08F658B82DC/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="ChicagoSalaries.gif" title="ChicagoSalaries.gif" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;DESCRIPTION&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Whether you use data for good like &lt;A href="http://www.sas.com/en_us/events/analytics-conference/analytics-experience-2016/program/speakers.html" target="_self"&gt;Jake Porway&lt;/A&gt;, or you're just a nosy-busybody like &lt;A href="http://bewitched.wikia.com/wiki/Gladys_Kravitz" target="_self"&gt;Gladys Kravitz&lt;/A&gt;, Open Data is likely to pique your interest.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take the &lt;A href="http://www.cityofchicago.org/city/en/depts/dhr/dataset/current_employeenamessalariesandpositiontitles.html" target="_self"&gt;City of Chicago Salary Data&lt;/A&gt;, for example. Read it into SAS, and you can remix new and old visualization tips from &lt;A href="http://blogs.sas.com/content/graphicallyspeaking/" target="_self"&gt;Graphically Speaking&lt;/A&gt; bloggers &lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2016/07/25/unbox-your-box-plots-part-deux/" target="_self"&gt;Prashant Hebbbar&lt;/A&gt; and &lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2013/07/10/make-better-graphs-with-sas-9-4/" target="_self"&gt;Sanjay Matange&lt;/A&gt; to start gaining some insight into the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, crime may not pay, but it certainly costs. Big time. And while a cop's salary might look attractive at first glance, you can make even better coin as an IT staffer - without putting your life in jeopardy.&amp;nbsp;And last, but not least, you're much better off financially being the Aviation Chief than the Mayor!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SAS CODE&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename chicago url 'http://data.cityofchicago.org/resource/tt4n-kn4t.csv';

data chicago;                                         * Read salary data;
infile chicago dsd dlm=',' lrecl=2000 truncover firstobs=2;
input Department : $30. Salary Title : $30. Name : $30.;
format salary dollar8.;

proc sql;                                             * Highest paid in each department?;                                  
create table maxavgsalary as 
select department, max(salary) as maxsalary, avg(salary) as avgsalary 
from chicago group by 1;

create table maxavgsalaryname as 
select c.department, max(maxsalary) as maxsalary, max(avgsalary) as avgsalary, 
       max(name) as maxname 
from chicago c, maxavgsalary m 
where c.department=m.department and c.salary=m.maxsalary group by 1;

create table chicagomaxsalary as 
select c.department, c.salary, 1 as Employees format=comma6., m.avgsalary, 
       m.maxname, m.maxsalary format=dollar8.
from chicago c, maxavgsalaryname m 
where c.department=m.department and c.department&amp;lt;&amp;gt;"" 
order by 4 desc;
                                                      * Create plot;
ods graphics on / reset imagename="ChicagoSalaries" border=off 
                  width=14in height=8.5in antialias ANTIALIASMAX=32100 ;
ods listing  gpath='/folders/myfolders' image_dpi=300; 

proc sgplot data=chicagomaxsalary noautolegend;
title "City of Chicago: Annual Salary Distribution by Department"; 
scatter y=department x=salary;
hbox Salary / category=Department noFill noOutliers meanattrs=(color=red symbol=diamondfilled);
xaxis grid display=(nolabel); 
yaxis discreteorder=data display=(nolabel) max=300000;
yaxistable employees / stat=sum location=inside position=left label="#";
yaxistable salary / stat=mean location=inside position=left label="Avg Salary";
yaxistable maxname / location=inside position=right label="Highest Paid";
yaxistable maxsalary / stat=mean location=inside position=right label="$";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;OT OPPORTUNITIES&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Btw, some departments have opportunities for &lt;A href="https://data.cityofchicago.org/Administration-Finance/Employee-Overtime-and-Supplemental-Earnings-2015/efd5-hyfi/data" target="_self"&gt;Overtime and Supplemental Earnings&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4349i320E8627E90CE268/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="ChicagoOT.gif" title="ChicagoOT.gif" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;CODE&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename chicago url 'http://data.cityofchicago.org/resource/wvhw-8n2j.csv';

data chicago;                                         * Read OT/Supplemental $;
infile chicago dsd dlm=',' lrecl=2000 truncover firstobs=2;
input aprOT augOT decOT Department : $40. Name : $40. febOT janOT julOT junOT 
      marOT mayOT novOT octOT sepOT Title : $40. Overtime;
format Overtime dollar8.;

proc sql;                                             * Highest paid OT in each department?;                                  
create table maxavgovertime as 
select department, max(overtime) as maxovertime, avg(overtime) as avgovertime 
from chicago group by 1;

create table maxavgovertimename as 
select c.department, max(maxovertime) as maxovertime, max(avgovertime) as avgovertime, 
       max(title) as maxtitle 
from chicago c, maxavgovertime m 
where c.department=m.department and c.overtime=m.maxovertime group by 1;

create table chicagomaxovertime as 
select c.department, c.overtime, 1 as Employees format=comma6., m.avgovertime, 
       m.maxtitle, m.maxovertime format=dollar8.
from chicago c, maxavgovertimename m 
where c.department=m.department and c.department&amp;lt;&amp;gt;"" 
order by 4 desc;
                                                      * Create plot;
ods graphics on / reset imagename="ChicagoOT" border=off 
                  width=14in height=8.5in antialias ANTIALIASMAX=32100 ;
ods listing  gpath='/folders/myfolders' image_dpi=300; 

proc sgplot data=chicagomaxovertime noautolegend;
title "City of Chicago: 2015 Overtime/Supplemental Pay by Department"; 
scatter y=department x=overtime;
hbox overtime / category=Department noFill noOutliers meanattrs=(color=red symbol=diamondfilled);
xaxis grid display=(nolabel); 
yaxis discreteorder=data display=(nolabel);
yaxistable employees / stat=sum location=inside position=left label="#";
yaxistable overtime / stat=mean location=inside position=left label="Avg $";
yaxistable overtime / stat=sum location=inside position=left label="Tot $";
yaxistable maxtitle/ location=inside position=right label="Max OT";
yaxistable maxovertime / stat=mean location=inside position=right label="$";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jul 2016 00:49:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-w-ODS-Graphics-Q-Why-join-the-City-of-Chicago-s-IT-Dept-A/m-p/288286#M10193</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2016-07-31T00:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Fun w/ODS Graphics: Q. Why join the City of Chicago's IT Dept? A. Because that's where the money</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-w-ODS-Graphics-Q-Why-join-the-City-of-Chicago-s-IT-Dept-A/m-p/306018#M10747</link>
      <description>&lt;P&gt;Very nice. &amp;nbsp;With SAS 9.4, you can now use the y-axis option&amp;nbsp;&lt;STRONG&gt;SplitPolicy=split&lt;/STRONG&gt; to avoid long&amp;nbsp;y-axis tick values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgplot data=sashelp.heart;&lt;BR /&gt;&amp;nbsp; hbar deathcause / response=systolic stat=mean;&lt;BR /&gt;&amp;nbsp; yaxis fitpolicy=split;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/5387i53DCC033ABBC1034/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Split_Y_Axis_Values.png" title="Split_Y_Axis_Values.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 17:39:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-w-ODS-Graphics-Q-Why-join-the-City-of-Chicago-s-IT-Dept-A/m-p/306018#M10747</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-10-20T17:39:55Z</dc:date>
    </item>
  </channel>
</rss>

