The mtcars dataset contains fuel-economy and engineering
information for 32 automobiles. This short interactive presentation
explores how vehicle weight, horsepower, and engine size relate to miles
per gallon (mpg).
Main finding: heavier cars tend to have lower fuel economy. The relationship is strong in this sample, although these observational data do not establish cause and effect.
Hover over a point to identify the car and inspect its weight, horsepower, and fuel economy. Use the toolbar to zoom, pan, or save the chart.
The downward pattern indicates that heavier vehicles generally achieve fewer miles per gallon. Point size represents horsepower, and color identifies the number of cylinders. These characteristics overlap: heavier cars often have larger, more powerful engines.
In this sample, four-cylinder cars average about 26.7 mpg, six-cylinder cars 19.7 mpg, and eight-cylinder cars 15.1 mpg. Cylinder count is a useful broad grouping, but it should not be treated as the only explanation for a car’s efficiency.
Created on October 24, 2026 using R Markdown and Plotly. Data:
the built-in R dataset mtcars.