Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

use r studio pls Problem 1. This problem uses the mpg data set in the ggplot2 package. (a) Which variables in mpg are categorical? Which

use r studio pls image text in transcribed
Problem 1. This problem uses the mpg data set in the ggplot2 package. (a) Which variables in mpg are categorical? Which variables are continuous? Use the str() function or the glimpse() function (b) What does the stroke aesthetic do? (Hint: use ?geom_point). (c) Use ggplot2 to create a scatterplot of displ (on the y-axis) vs hwy (on the x-axis), setting stroke to be a value that is different from the default. (d) Add the title "Scatterplot of engine displacement (displ) vs highway miles per gallon (hwy)" to the plot in part (c). Hint: use ? labs

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

1. What are your creative strengths?

Answered: 1 week ago