The following figure is a 3D display of data from the ‘mtcars’ dataset. Weight, mileage (mpg), and horsepower attributes of different vehicles are displayed against each other on axes representing each of these variables. Symbols are also color-coded by the number of cylinders (4, 6, or 8) in a given vehicle’s engine, as shown in the legend.
Automobile weight vs. mileage vs. horsepower. Number of cylinders is indicated by symbol color.