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:

  1. Visual representation of the information,
  2. A detailed explanation of the answer,
  3. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!