Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please answer the following questions by writing the appropriate code in RStudio. Note: Please submit all your work as one file/document that can be read

Please answer the following questions by writing the appropriate code in RStudio. Note: Please submit all your work as one file/document that can be read in Canvas. When providing your answers, include your approach, the code you wrote and evaluated, the output, and your analysis and insights. For this assignment, work on the in-built R dataset called mtcars. Load the data using the following commands in RStudio: library(datasets) data("mtcars") ?mtcars # use this command to learn more details about this dataset Using this data, please answer the questions below. Each question is worth 1 points. Plot the gross horse power (hp) using a histogram. Comment on what you observe in this plot. Visualize the relationship between car mileage (in terms of miles per gallon, mpg) and hp. Comment on what you observe in this plot. Similarly, visualize the relationship between car mileage (in terms of miles per gallon, mpg) and car weight (wt). Comment on what you observe in this plot. Compare the plots generated in Q2 and Q3. What insights can be gained from this comparison? Visualize the mileage by transmission using a box-plot. Comment on what you observe in this plot. Visualize the mileage by gears using a box-plot. Comment on what you observe in this plot. Visualize the hp by gears using a box-plot. Comment on what you observe in this plot. Compare the plots generated in Q7 and Q8. What insights can be gained from this comparison? Generate using a single command pairwise scatterplots for mpg, hp, wt and qsec. Comment on what you observe in the plot generated in Q9.

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

Operations Management Sustainability And Supply Chain Management

Authors: Jay Heizer, Barry Render, Chuck Munson, Paul Griffin

4th Canadian Edition

0137319169, 978-0137319169

More Books

Students also viewed these General Management questions