8.3 3D Plots
Just as two-dimensional scatter plots show the data in two dimensions, 3D plots show data in three dimensions. Figure 1 shows a 3D scatter plot of the fat, non-sugar carbohydrates, and calories from a variety of cereal types.

Many statistical packages allow you to rotate the axes interactively to view the data from a different vantage point. Figure 2 is an example.

A fourth dimension can be represented as long as it is represented as a nominal variable. Figure 3 represents the different manufacturers by using different colors.

Interactively rotating 3D plots can sometimes reveal aspects of the data not otherwise apparent. Figure 4 shows data from a pseudo random number generator. Figure 4 does not show anything systematic and the random number generator appears to generate data with properties similar to those of true random numbers.

Figure 5 shows a different perspective on these data. Clearly they were not generated by a random process.

Figures 4 and 5 are reproduced with permission from R snippets by Bogumil Kaminski.
Adapted from Online Statistics Education: A Multimedia Course of Study (onlinestatbook.com), Project Leader: David M. Lane, Rice University. Developed with NSF support. The original work is in the public domain; it is cited here at the authors' request. Changes were made: reformatted as an accessible XYZ web edition with native MathML. License: Public-Domain.