mpg

0th

Percentile

Fuel economy data from 1999 and 2008 for 38 popular models of car

This dataset contains a subset of the fuel economy data that the EPA makes available on http://fueleconomy.gov. It contains only models which had a new release every year between 1999 and 2008 - this was used as a proxy for the popularity of the car.

Keywords
datasets
Details

  • manufacturer.
  • model.
  • displ. engine displacement, in litres
  • year.
  • cyl. number of cylinders
  • trans. type of transmission
  • drv. f = front-wheel drive, r = rear wheel drive, 4 = 4wd
  • cty. city miles per gallon
  • hwy. highway miles per gallon
  • fl.
  • class.

format

A data frame with 234 rows and 11 variables

Aliases
  • mpg
Documentation reproduced from package ggplot2, version 0.9.3.1, License: GPL-2

Community examples

sbbrouwer@gmail.com at Mar 17, 2017 ggplot2 v2.2.1

Variables in the dataset: * `manufacturer`: Manufacturer/brand name * `model`: Car model name * `displ`: Engine displacement, in litres * `year`: Year of manufacture * `cyl`: Number of cylinders * `trans`: Type of transmission * `drv`: f = front-wheel drive, r = rear wheel drive, 4 = 4wd * `cty`: City miles per gallon * `hwy`: Highway miles per gallon * `fl`: Fuel type. `e` = ethanol, `d` = diesel, `r` = regular, `p` = premium, `c` = natural gas * `class`: The 'type' of car ```r head(mpg) ```