HW 10 - Shine on!

Team assignment

Due: Dec 4 at 10:05am

Photo by Sharon McCutcheon on Unsplash.

Part 1. Shine bright like a diamond

Create a scatterplot of two numerical variables in the diamonds dataset. This should be an interactive plot created with shiny such that the user selects the variable to be placed on the x and y axes from a drop down menu. You can place that drop down menu on the sidebar (like in the class example), or feel ree to get creative with it…

Then, add functionality to color the points on the scatterplot by a categorical variable in the dataset. The user should also be able to choose the categorical variable from a drop down menu.

Tips

Accessing the data

Once the tidyverse package is loaded, you can load the dataset with

Part 2.

Create an app using data from your project, and use an alternate styling than the default using the shinythemes package.

Tips

Accessing the data

Move your project data into the part-02/data/ folder in your repo and load it from there with something like

on top of your app.R file.

Part 3

Build a dashboard using the flexdashboard package and data from your project.

One of the main differences between the flexdashboard and shiny packages is that flexdashboards are built in R Markdown and Shiny apps are built in R scripts. Luckily you know how to work with both!

Another difference is that we do not need to specify UI and server components explicitly in flexdashboards.

However what is common is that we still use the same UI elements (e.g. selectInput()) and same mechanisms bot reactivity (e.g. renderPlot()).

The functionality of the dashboard can be same/similar to the app you built in part 2, or you can change things up if you prefer.

Tips

Accessing the data

Move your project data into the part-03/data/ folder in your repo and load it from there with something like

Part 4

Deploy one of your apps from Part 2 or Part 3.

To do so: