0% found this document useful (0 votes)
127 views2 pages

MILESTONE CHALLENGE Not Cleared Contigency Using Data Visualization

The document describes the mtcars data set which contains data on fuel consumption and vehicle design measurements for 32 cars from the 1974 Motor Trend US magazine. The data is presented as an 11-variable data frame with observations on miles per gallon, number of cylinders, displacement, horsepower, rear axle ratio, weight, quarter mile time, engine type, transmission, number of forward gears, and number of carburetors. The source of the data is cited as coming from a 1981 biometrics journal article.

Uploaded by

Pushpendra Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
127 views2 pages

MILESTONE CHALLENGE Not Cleared Contigency Using Data Visualization

The document describes the mtcars data set which contains data on fuel consumption and vehicle design measurements for 32 cars from the 1974 Motor Trend US magazine. The data is presented as an 11-variable data frame with observations on miles per gallon, number of cylinders, displacement, horsepower, rear axle ratio, weight, quarter mile time, engine type, transmission, number of forward gears, and number of carburetors. The source of the data is cited as coming from a 1981 biometrics journal article.

Uploaded by

Pushpendra Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

mtcars: Motor Trend Car Road Tests

Description Usage Format Note Source Examples

Description
The data was extracted from the 1974 Motor Trend US magazine, and comprises fuel
consumption and 10 aspects of automobile design and performance for 32 automobiles (1973–
74 models).

Usage
mtcars
1

Format
A data frame with 32 observations on 11 (numeric) variables.

[, 1] mpg Miles/(US) gallon

[, 2] cyl Number of cylinders

[, 3] disp Displacement (cu.in.)

[, 4] hp Gross horsepower

[, 5] drat Rear axle ratio

[, 6] wt Weight (1000 lbs)

[, 7] qsec 1/4 mile time


[, 8] vs Engine (0 = V-shaped, 1 = straight)

[, 9] am Transmission (0 = automatic, 1 = manual)

[,10] gear Number of forward gears

[,11] carb Number of carburetors

Note
Henderson and Velleman (1981) comment in a footnote to Table 1: ‘Hocking [original
transcriber]'s noncrucial coding of the Mazda's rotary engine as a straight six-cylinder engine and
the Porsche's flat engine as a V engine, as well as the inclusion of the diesel Mercedes 240D,
have been retained to enable direct comparisons to be made with previous analyses.’

Source
Henderson and Velleman (1981), Building multiple regression models
interactively. Biometrics, 37, 391–411.

Examples
require(graphics)
1pairs(mtcars, main = "mtcars data", gap = 1/4)
2coplot(mpg ~ disp | as.factor(cyl), data = mtcars,
3 panel = panel.smooth, rows = 1)
4## possibly more meaningful, e.g., for summary() or bivariate
5plots:
6mtcars2 <- within(mtcars, {
7 vs <- factor(vs, labels = c("V", "S"))
8 am <- factor(am, labels = c("automatic", "manual"))
9 cyl <- ordered(cyl)
10 gear <- ordered(gear)
11 carb <- ordered(carb)
12})
13summary(mtcars2)

You might also like