Global Crop Yields
Interactive Shiny Dashboard
Notable topics: Interactive Shiny Dashboard
Recorded on: 2020-08-31
Timestamps by: Eric Fletcher
Screencast
Timestamps
Using rename
to shorten column name
Using rename_all
with str_remove
and regex to remove characters in column name
Using pivot_longer
to change data from wide to long
Create a faceted geom_line
chart
Using fct_reorder
to reorder facet panels in ascending order
Create an interactive Shiny
dashboard
Create a faceted geom_line
chart with add_count
and filter(n = max(x))
to subset the data for crops that have observations in every year
Create a faceted geom_point
chart showing the crop yields at start and end over a 50 year period (1968 start date and 2018 end date)
Create a geom_boxplot
to visualize the distribution of yield ratios for the different crops to see how efficiency has increased across countries
Create a geom_col
chart to visualize the median yield ratio for each crop
Create a geom_point
chart to visualize efficiency imporvement for each country for a specific crop (yield start / yield ratio)
Using the countrycode
package to color geom_point
chart by continent names
Summary of screencast