Developing Data Products Week 3 Project 1 - Minimum Wage: 1968 to 2019 Actual vs. Inflation Adjusted
Minimum Wage: 1968 to 2019 Actual vs. Inflation Adjusted
# Overview and Sources
Created: April 1, 2021
The dataset used in this project was initially scraped from the US Department of Labor. Note, this dataset uses the minimum wage (and takes the lower value in years where there are multiple) which represents the phase-in amounts when the law was enacted to include new populations.
# Data Wrangling
I’ll start by loading in the required packages. For this project, I’m using ‘dplyr’ to clean the data, ‘plotly’ to layer in the interactivity, ‘ggplot2’ to actually create the plot, ‘data.table’ to use the copy function, ‘reshape2’ to melt the dataframe, and ‘htmlwidgets’ and ‘htmltools’ to save the plot down for the website.
|
|
Next, I’ll load and inspect the data.
|
|
|
|
To get the data organized for plotting, I’ll rename the columns and unpivot the wage columns.
|
|