Overview

This page presents a short, interactive exploration of the classic mtcars dataset (fuel consumption and 10 design/performance characteristics for 32 automobiles, from a 1974 Motor Trend magazine article), using an interactive chart built with Plotly.

Hover over any point below to see the car model, its weight, its miles per gallon, and its number of cylinders.

What this shows

There is a clear negative relationship between a car’s weight and its fuel efficiency: heavier cars tend to get fewer miles per gallon. The color coding also shows that cars with more cylinders (6 or 8, shown in green and blue) tend to be both heavier and less fuel-efficient than 4-cylinder cars (red), while bubble size shows that horsepower increases along the same trend — bigger, more powerful engines generally come in heavier, thirstier cars.


Document created on juillet 30, 2026.