The following are the activity solutions for this chapter.
Chapter 1: Basic Plotting in ggplot2
Activity: Creating a Histogram and Explaining its Features
Steps for Completion:
- Use the template code Lesson1_student.R.
This is an empty code, wherein the libraries are already loaded. You will be writing your code here.
- Load the dataset temperature.csv from the directory data.
- Create the histogram for two cities (Vancouver and Miami) by using the command discussed previously.
- Once the histogram is ready, run the code.
- Analyze the two histograms by giving three points for each histogram, and two points of difference between the two.
Outcome:
Two histograms should be created and compared...