Due date: the homework is due before class on Thursday.
Submission process: submit both the R Markdown file and the corresponding html file on canvas. Please submit both the .Rmd and the .html files separately and do not zip the two files together.
Download the RMarkdown file with these homework instructions to use as a template for your work. Make sure to replace “Your Name” in the YAML with your name.
Using the command below, read in the spotify data set into your R session.
spotify <- read.csv("https://raw.githubusercontent.com/Stat480-at-ISU/Stat480-at-ISU.github.io/master/homework/data/spotify.csv")
Use one of our object inspecting functions and interpret the result in the data that you see.
Use the package ggplot2 to draw a barchart of the genres. In addition, map the genre categories to the fill color of the barchart.
Use the package ggplot2 to draw a histogram of one of the continuous variables in the dataset. Use fill color to show the genre categories and adjust the binwidth if necessary. Use facet_wrap() to create a histogram for each of the genre categories.
Use the package ggplot2 to draw a boxplot to compare one of the continuous variables with the genre categories. Again, use fill color to show the genre categories.