Data were collected and made available by FiveThirtyEight using the FiveThirtyEight package in R.
I chose to revist the first portfolio project because I am very proud of these graphs I made in the first few weeks of class, and I thought that I could use my new skills to improve them. I decided to make both of the scatterplot/line graphs interactive with plotly because users could then hover over different points to see the actual values, which helps because there is quite a bit of data, so this can also be useful to trace over the trendline to see what values match up with this trendline. I also wanted to add an interactive datatable so that not only can the user see the other variables that were not used within the graph, but are still interesting to look at, but can sort it. For example, I found it useful to sort based on highest or lowest approval rate, and look at the dates, and the sample size to understand the type of polls that were conducted. Finally, I did not just want to make these interactive graphs in a regular html file, so I decided to use a flexdashboard to bring everything together in a clean and helpful format.