Question: Using RStudio write out the functions for the following tasks and questions Project 4-2: Plot the avocado data The data file avocado.csv Tasks 1. Read
Using RStudio write out the functions for the following tasks and questions
Project 4-2: Plot the avocado data The data file avocado.csv Tasks 1. Read the data from the CSV file into a tibble and display the data. To do that, you can use the read_csv() function like this: avocados <- read_csv("avocados.csv") 2. Create this plot:
3. Create the same plot but with the color aesthetic set to year. 4. Create the same plot but with the color aesthetic set to type. 5. Create the following plot:
6. Create a new tibble named avocados_by_year that's grouped by both year and type and has a third column that shows the total volume for each group. 7. Using the new tibble, create a line plot that shows how the total volume for each type of avocado has changed over the years.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
