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
-
Topics
- Melding code with data for repeatable & reproducible output
- using interactive plots to increase understanding (yours and others’)
-
ReadingsBrowsings
Lecture Notes
Data Management Plans
R-markdown
Shiny
Exercises
-- Add DT to R-markdown --
Using the R-markdown document you have built, add a new code chunk to output a table using
DT.
- show only 5 rows on the first page
- place filters beneath the columns
-- Add plotly to R-markdown --
Using the R-markdown document you have built, add a new code chunk to output a figure using
plotly
.-- Add leaflet to R-markdown --
Using the R-markdown document you have built, add a new code chunk to output a map using
leaflet
.- connect to the BeeLab database, through a connection we have used in prior labs.
- Get the latitude and longitude coordinates from the
sites
table in the BeeLab database. - plot the sites as circles on the basemap you choose, using
the
addCircleMarkers
function.