visualization of bls geospatial data using r/shinyusing shiny shiny is a package within r for...

21
Visualization of BLS Geospatial Data using R/Shiny Elizabeth Cross Kenneth Cho FCSM Research Conference December 2 nd , 2015

Upload: others

Post on 02-Jun-2020

36 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Visualization of BLS Geospatial Data using R/ShinyUsing Shiny Shiny is a package within R for interactive applications Works with other packages in R for maps, graphs, tables, etc

Visualization of BLS Geospatial Data using R/Shiny

Elizabeth CrossKenneth Cho

FCSM Research ConferenceDecember 2nd, 2015

Page 2: Visualization of BLS Geospatial Data using R/ShinyUsing Shiny Shiny is a package within R for interactive applications Works with other packages in R for maps, graphs, tables, etc

CAN WE DEVELOP A DYNAMIC MAPPING TOOL FOR OES DATA

USING R?

2

Page 3: Visualization of BLS Geospatial Data using R/ShinyUsing Shiny Shiny is a package within R for interactive applications Works with other packages in R for maps, graphs, tables, etc

CAN WE DEVELOP A DYNAMIC MAPPING TOOL FOR OES DATA

USING R?

3

Page 4: Visualization of BLS Geospatial Data using R/ShinyUsing Shiny Shiny is a package within R for interactive applications Works with other packages in R for maps, graphs, tables, etc

Can we do this in R - Why R?

R is an open source software.

Free

Versatile

Functional

Trendy

FREE!

And, Yes, it can make maps.

4

Page 5: Visualization of BLS Geospatial Data using R/ShinyUsing Shiny Shiny is a package within R for interactive applications Works with other packages in R for maps, graphs, tables, etc

CAN WE DEVELOP A DYNAMIC MAPPING TOOL FOR OES DATA

USING R?

5

Page 6: Visualization of BLS Geospatial Data using R/ShinyUsing Shiny Shiny is a package within R for interactive applications Works with other packages in R for maps, graphs, tables, etc

CAN WE DEVELOP A DYNAMIC MAPPING TOOL FOR OES DATA

USING R?

6

Page 7: Visualization of BLS Geospatial Data using R/ShinyUsing Shiny Shiny is a package within R for interactive applications Works with other packages in R for maps, graphs, tables, etc

What is OES?

OES provides employment and wage estimates for

Over 800 occupations

Over 300 industries

More than 375 Metropolitan areas

34 metropolitan divisions

All 50 states, the District of Columbia, Puerto Rico, Guam, and the Virgin Islands

Non-metropolitan areas.

Published annually.

7

Page 8: Visualization of BLS Geospatial Data using R/ShinyUsing Shiny Shiny is a package within R for interactive applications Works with other packages in R for maps, graphs, tables, etc

CAN WE DEVELOP A DYNAMIC MAPPING TOOL FOR OES DATA

USING R?

8

Page 9: Visualization of BLS Geospatial Data using R/ShinyUsing Shiny Shiny is a package within R for interactive applications Works with other packages in R for maps, graphs, tables, etc

CAN WE DEVELOP A DYNAMICMAPPING TOOL FOR OES DATA

USING R?

9

Page 11: Visualization of BLS Geospatial Data using R/ShinyUsing Shiny Shiny is a package within R for interactive applications Works with other packages in R for maps, graphs, tables, etc

Making a Dynamic Tool: Using Shiny

Shiny is a package within R for interactive applications

Works with other packages in R for maps, graphs, tables, etc.

Deployed via a server

– Deployment options include a local server or cloud based server

– Users do not require R, the packages, or data to use the application

Page 12: Visualization of BLS Geospatial Data using R/ShinyUsing Shiny Shiny is a package within R for interactive applications Works with other packages in R for maps, graphs, tables, etc

Mapping in R

ChoroplethR package

Pros: very useful to make a quick state map

Cons: limited interactivity and difficult to incorporate shape files to map MSAs

12

Page 13: Visualization of BLS Geospatial Data using R/ShinyUsing Shiny Shiny is a package within R for interactive applications Works with other packages in R for maps, graphs, tables, etc

Early trials with Leaflet

Pros: Increased interactivity with maps, Easy compatibility with shape files

Cons: Difficult to change projection

13

Page 14: Visualization of BLS Geospatial Data using R/ShinyUsing Shiny Shiny is a package within R for interactive applications Works with other packages in R for maps, graphs, tables, etc

Can we add a legend?

No.

Leaflet had a legend tool, but not dynamic.

Joe Cheng, Leaflet developer, showed us how. Special Thanks!

14

Page 15: Visualization of BLS Geospatial Data using R/ShinyUsing Shiny Shiny is a package within R for interactive applications Works with other packages in R for maps, graphs, tables, etc

CAN WE DEVELOP A DYNAMIC MAPPING TOOL FOR OES DATA

USING R?

15

Page 16: Visualization of BLS Geospatial Data using R/ShinyUsing Shiny Shiny is a package within R for interactive applications Works with other packages in R for maps, graphs, tables, etc

CAN WE DEVELOP A DYNAMIC MAPPING TOOL FOR OES DATA

USING R?

16

Page 17: Visualization of BLS Geospatial Data using R/ShinyUsing Shiny Shiny is a package within R for interactive applications Works with other packages in R for maps, graphs, tables, etc

Thanks to Everyone!

Other features added with input from

Jean Fox

David Hiles

Ben Cover

Michael Schwarz

Resources

Shiny Tutorial at http://shiny.rstudio.com/

SuperZip Example by Rstudio

GitHub

StackOverflow

17

Page 18: Visualization of BLS Geospatial Data using R/ShinyUsing Shiny Shiny is a package within R for interactive applications Works with other packages in R for maps, graphs, tables, etc

CAN WE DEVELOP A DYNAMIC MAPPING TOOL FOR OES DATA

USING R?

18

Page 19: Visualization of BLS Geospatial Data using R/ShinyUsing Shiny Shiny is a package within R for interactive applications Works with other packages in R for maps, graphs, tables, etc

CAN WE DEPLOY OUR DYNAMIC MAPPING TOOL FOR OES DATA?

19

Page 20: Visualization of BLS Geospatial Data using R/ShinyUsing Shiny Shiny is a package within R for interactive applications Works with other packages in R for maps, graphs, tables, etc

Demonstration

20

Page 21: Visualization of BLS Geospatial Data using R/ShinyUsing Shiny Shiny is a package within R for interactive applications Works with other packages in R for maps, graphs, tables, etc

Contact Information

Elizabeth Cross(202) 691-5089

[email protected], OES

Kenneth Cho(202) 691-6248

[email protected], OCWC