Light on the road

Sarthak

November 16, 2026

A lighter car. A longer journey.

A DATA STORY / 01
What can 32 classic cars tell us about fuel economy?

In this sample, heavier cars tend to travel fewer miles per gallon. Explore the relationship yourself, one car at a time.

32car models
3cylinder groups
1974Motor Trend source year
Start with the big picture, explore the interactive charts, then examine what the data can and cannot tell us.

Created November 16, 2026 · Sarthak · R Markdown + Plotly

Explore the weight of efficiency

THE RELATIONSHIP / 02

Each dot is one car. Hover for its details; click a cylinder group in the legend to hide or show it. Drag to zoom and double-click to reset.

Reading the pattern: the point cloud slopes downward. Weight and fuel economy move in opposite directions in this sample.

A different view of the same cars

THE GROUPS / 03

Compare the spread of fuel economy within each cylinder group. Every dot is an observed car; boxes summarize the distribution.

These groups also differ in weight and other characteristics. This comparison does not isolate the effect of cylinder count.

The pattern is strong. The claim is modest.

THE TAKEAWAY / 04
-0.87weight<U+2013>MPG correlation

In these 32 cars, weight and fuel economy have a strong negative association. Average fuel economy is 26.7 mpg for 4-cylinder cars, 19.7 mpg for 6-cylinder cars, and 15.1 mpg for 8-cylinder cars.

What we see

Heavier cars generally have lower MPG, with variation between individual cars.

What we cannot infer

This observational sample does not prove that weight alone causes the MPG difference, and it does not describe today’s vehicle market.

Behind the presentation

SOURCE & METHOD / 05

A small, reproducible exploration

The mtcars dataset ships with R. It contains fuel consumption and 10 aspects of automobile design and performance for 32 automobiles (1973–74 models), extracted from the 1974 US magazine Motor Trend.

We use weight (wt, in 1,000 pounds), fuel economy (mpg, miles per US gallon), and cylinder count (cyl). The correlation is Pearson’s correlation, calculated from all 32 rows. No observations were removed.

Both charts are generated in R with plotly::plot_ly() and embedded by R Markdown. This page is self-contained, so the charts do not need an external data service.

Try it: return to the scatter plot, hide the 8-cylinder group, and examine whether the downward pattern is still visible.

Document created November 16, 2026. Data describe historical cars; the creation date refers to this presentation.