Learning Objectives

Following this assignment students should be able to:

  • create dynamic merges of code and data with R-markdown
  • incorporate interactive tables, plots, and maps
  • create a basic shiny app

Reading

Lecture Notes

Data Management Plans

Homework 3: Write a data management plan

R-markdown

Shiny


Exercises

  1. -- Add DT to R-markdown --

    Using the R-markdown document you have built, add a new code chunk to output a table using DT.

    1. show only 5 rows on the first page
    2. place filters beneath the columns
  2. -- Add plotly to R-markdown --

    Using the R-markdown document you have built, add a new code chunk to output a figure using plotly.

  3. -- Add leaflet to R-markdown --

    Using the R-markdown document you have built, add a new code chunk to output a map using leaflet.

    1. connect to the BeeLab database, through a connection we have used in prior labs.
    2. Get the latitude and longitude coordinates from the sites table in the BeeLab database.
    3. plot the sites as circles on the basemap you choose, using the addCircleMarkers function.