Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use the Toyota Corolla dataset (ToyotaCorolla.csv) ( https://file.io/QXwOATavPvuH ) to draw the following plots. Instructions: Copy the plot as well as your R code for

Use the Toyota Corolla dataset (ToyotaCorolla.csv) (https://file.io/QXwOATavPvuH) to draw the following plots. Instructions: Copy the plot as well as your R code for drawing the plot to a single Microsoft Word document, submit online. 1. Compute the average of variable "KM" (mileage in kilometers) for cars with automatic transmission (variable "Automatic = 1") and cars with manual transmission (variable "Automatic = 0"). Use barplot() function to draw bar chart of average "KM" with respect to "Automatic". Set x-axis label as "Automatic" and y-axis label as "Average KM".

2. Use plot() function to draw a scatter plot of "Price" (price of a used Toyota Corolla) with respect to "KM" (mileage in kilometers). Set x-axis label as "Mileage in kilometers" and y-axis label as "Price".

3. Use hist() function to draw a histogram of "KM" with 25 bins (set parameter "breaks = 25", check the help document of hist() function). Set x-axis label as "Mileage in kilometers".

4. Use boxplot() function to draw side-by-side boxplots of "Price" (price of a used Toyota Corolla) with respect to "Mistlamps" (if the car is equipped with mist lamps or not). Set x-axis label as "Mistlamps" and y-axis label as "Price".

CSV file is uploaded on https://file.io/QXwOATavPvuH

you can downloaded from there

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

Bridging Algebra, Geometry, And Topology

Authors: Denis Ibadula, Willem Veys

1st Edition

3319091867, 9783319091860

More Books

Students also viewed these Mathematics questions