Stephanie R. Thompson Top 5 Things to Know · Top 5 Things to Know 1. Loves programming (FORTRAN 77...

Preview:

Citation preview

Stephanie R. Thompson –Top 5 Things to Know

1. Loves programming (FORTRAN 77 anyone?)

2. Has been programming for a long time (see #1)

3. Is a SAS Global Forum Mentor (Not sure what this is? Ask her!)

4. Presents at lots of SAS conferences and finds them invaluable (learning, networking, even some fun)

5. Has worked in higher education, commercial printing, automotive parts manufacturing & retail, cereal production, and nuclear waste remediation

Affiliations: Principal at Datamum and Sr. Data Scientist at RIT

Easier than You Think: Creating Maps with SAS® Enterprise Guide®

Stephanie R. Thompson

Datamum

stephanie@datamum.com

Have you ever wanted to do this?

Or maybe something like this

Well, it is easier than you think with SAS Enterprise Guide!

It just takes this:

And a few clicks…

The Minimum Requirements

A dataset with a geographic variable and something to graph

A shape file / map dataset

Try not to do this

Linking Data

What’s in the US dataset?

Contains instructions on how to draw each area (state) on the map

Multiple rows per state

– Colorado 8

– Maryland 54

2 SEGMENT Num 5 State Segment Number1 STATE Num 5 State FIPS Code3 STATECODE Char 2 Two-letter abbrev. for state name4 X Num 8 Projected Longitude from Radians5 Y Num 8 Projected Latitude from Radians

From PROC CONTENTS

Things to keep in mind

Some maps contain areas you may not want to display (e.g., Puerto Rico)

Things to keep in mind

Choose colors easily discernable

Simple is good

Meaningful title and legend

Outline and background colors that complement and do not compete with the data

Pitfalls

Competing colors

Too many bins for data

Unreadable fonts

Map projection

Going to the Next Frontier

Add the code from Enterprise Guide to your programs

GOPTIONS CBACK= ;

TITLE1 "Map Chart";

PROC GMAP GOUT=MAPCHART DATA=WORK.MAPCHARTRESPONSEPREP MAP=WORK.MAPCHARTMAPPREP ALL;

ID STATECODE;CHORO population2000 /

WOUTLINE=1NOLEGEND;

RUN;QUIT;

Going even further

Downloading maps

SAS bridge for ESRI

ArcGIS

Wrap-Up

Creating Map Charts is easy

Keep it simple

Don’t go crazy

Take it to the next level

Questions?

Contact

stephanie@datamum.com

www.datamum.com

Thank You!