Summary and Schedule
Lesson Author: Jarrett Byrnes
This is a new lesson built with The Carpentries Workbench. It is designed to teach the basics of how to build an R Shiny app. Much of the material these lessons draw on come from Dean Attali’s wonderful tutorials (see here for slides or see here for a walkthrough) as well as the excellent Mastering Shiny book by Hadley Wickham.
Prerequisites
Data Carpentry’s teaching is hands-on, so participants are encouraged to use their own computers to ensure the proper setup of tools for an efficient workflow. To most effectively use these materials, please make sure to download the data and install everything before working through this lesson.
R Skill Level
This lesson assumes you have some knowledge of R
. If
you’ve never used R
before, or need a refresher, start with
our Introduction
to R for Geospatial Data lesson.
Geospatial Skill Level
This lesson assumes you have some knowledge of geospatial data types and common file formats. If you have never worked with geospatial data before, or need a refresher, start with our Introduction to Geospatial Concepts lesson.
Install Software and Download Data
For installation instructions and to download the data used in this lesson, see the Geospatial Workshop Overview.
Download Data
In the vein of the initial R lessons for this GIS workshop, setup a new project as we did in lesson 2 and create a data folder. For the data, we will use this unified seagrass data set which brings together multiple years from the Maine DEP and DMR seagrass surveys that we have joined after cleaning.
Setup RStudio Project
Make sure you have set up a RStudio project for this lesson, as described in the setup instructions and that your working directory is correctly set.
Setup Instructions | Download files required for the lesson | |
Duration: 00h 00m | 1. Introduction to Shiny | What is a Shiny App? |
Duration: 00h 35m | 2. The Basics of a User Interface | How do we build a User Interface? |
Duration: 01h 10m | 3. Inputs and Outputs |
How do we let users query the data? How do we change the data to let the app respond to the user? |
Duration: 03h 00m | 4. Reactive Objects in Shiny |
What is reactivity? How can I avoid re-processing data the same way for multiple outputs? How can I have inputs change in response to other inputs? |
Duration: 03h 40m | 5. Making Shiny Apps Public | How do I show the world my Shiny apps? |
Duration: 04h 15m | 6. Translating a Shiny App | How do I make my Shiny App accessible to non-English speakers? |
Duration: 04h 50m | 7. Spatial Selection |
How can I use interactive maps as an input select? How can I make my spatial apps more interactive? |
Duration: 05h 25m | Finish |
The actual schedule may vary slightly depending on the topics and exercises chosen by the instructor.
This lesson is designed to be taught in conjunction with other lessons in the COBALT Geospatial workshop. For information about required software, and to access the datasets used in this lesson, see the setup instructions on the workshop homepage.