Download presentation
Presentation is loading. Please wait.
Published byJason Bryan Modified over 6 years ago
1
Shiny for RStudio Exploring Web Mapping Technology
With Isnardo Gandarilla & Ian Amitin
2
General Overview “RStudio is an integrated development environment (IDE) for R. It includes a console, syntax-highlighting editor that supports direct code execution, as well as tools for plotting, history, debugging and workspace management.” Basically, it’s a scripting program with its own programming language. A Shiny App delivers an R script to audience in a format that does not require the audience to know R. However, you definitely need to know how to write script in R to even begin to try to plot a map using Shiny.
3
General Overview To use Shiny, you need to how to build the app you have in mind using an R script. You also need some type of web server to service the app for display on the web.
4
Documentation Go to for a 2.5 hour tutorial video on how to use Shiny in RStudio. You can skip to specific sections of the tutorial using the links provided on the page.
5
Documentation A map-specific tutorial is available at:
6
Documentation To get started learning RStudio you can access the free Data Camp tutorial:
7
Basic Functionality Table Data Manipulation: Joining Field Calculation
Column Shape Manipulation Shapefiles Store Data in a .dbf Spatial Data Manipulation: Points Lines Polygons Rasters Special Custom Objects (e.g. datacubes, networks, etc) Works Cited: Jackson Voelkel
8
Advanced Functionality
Plotting Vector Data Classification Custom Colors Raster Data Mathematical calculation (like Raster Calculator in ArcMap) Raster editing (clipping, mosaicking) Reclassification Works Cited: Jackson Voelkel
9
Shiny Functionality The Map Widget
Allows you to create a map using the “Leaflet” package. Provides the following functionality: Map tiles (Basemaps) Markers / Circle Markers Polygons / Rectangles Lines Popups GeoJSON / TopoJSON Raster Images Color Legends Layer Groups and Layer Control
10
Programming Language You need to know R to use Shiny, as Shiny is just a package available in R. JavaScript would be helpful too.
11
Interactive Map Example
Jackson Voelkel’s Interactive Map
12
Mash-Ups! Leaflet D3 Dygraphs Numerous HTML and CSS Themes.
13
Extras The ‘rgeos’ library in R is your friend! Learn R first.
Are you ready for Shiny? … We were not!
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.