With Isnardo Gandarilla amp Ian Amitin General Overview A Shiny App delivers an R script to audience in a format that does not require the audience to know R RStudio is an integrated development environment IDE for R It includes a console syntaxhighlighting editor that s ID: 654048
Download Presentation The PPT/PDF document "Shiny for RStudio Exploring Web Mapping..." is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
Slide1
Shiny for RStudio
Exploring Web Mapping Technology
With Isnardo Gandarilla & Ian AmitinSlide2
General Overview
A Shiny App delivers an R script to audience in a format that does not require the audience to know R.
“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.
However, you definitely need to know how to write script in R to even begin to try to plot a map using Shiny.Slide3
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.Slide4
Documentation
Go to http://shiny.rstudio.com/tutorial/
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.Slide5
Documentation
A map-specific tutorial is available at: http://shiny.rstudio.com/tutorial/lesson5/ Slide6
Documentation
To get started learning RStudio you can access the free Data Camp
tutorial: https://www.datacamp.com/courses/free-introduction-to-r Slide7
Basic Functionality
Table Data Manipulation:Joining
Field CalculationColumn Shape ManipulationShapefiles Store Data in a .dbf
Spatial Data Manipulation:
Points
Lines
Polygons
Rasters
Special Custom Objects (e.g.
datacubes
, networks,
etc
)
Works Cited:
Jackson
VoelkelSlide8
Advanced Functionality
Plotting Vector Data
ClassificationCustom ColorsWorks Cited:
Jackson
Voelkel
Raster Data
Mathematical calculation (like Raster Calculator in ArcMap)
Raster editing (clipping, mosaicking)
ReclassificationSlide9
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
ControlSlide10
Programming Language
You need to know R to use Shiny, as Shiny is just a package available in R.
JavaScript would be helpful too.Slide11
Interactive Map Example
Jackson Voelkel’s
Interactive MapSlide12
Mash-Ups!
Leaflet
D3DygraphsNumerous HTML and CSS Themes. Slide13
Extras
The ‘rgeos
’ library in R is your friend!Learn R first.Are you ready for Shiny? … We were not!