Question: Basic Graphs with ggplot2 For assessment 1 you are to complete the problems by providing one of the following: Visual representation of the information, A
Basic Graphs with ggplot2
For assessment 1 you are to complete the problems by providing one of the following:
- Visual representation of the information,
- A detailed explanation of the answer,
- Visual representation and detailed explanation.
When providing a visual representation, screenshot the solution.
It is recommended to use RStudio for all assessments.
1 - Runggplot(data = mpg). What do you see?
Import the necessary package, tidyverse, and load the mpg data from the ggplot2 package.
2 - How many rows are inmpg? How many columns?
To get the dimensions of a data matrix, we can simply use the function 'dim()'.
3 - What does thedrvvariable describe? Read the help for?mpgto find out.
4 -Make a scatterplot ofhwyvscyl.
5 - What happens if you make a scatterplot ofclassvsdrv? Why is the plot not useful?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
