25DEFINING COLORS AND PLOTTING IN HIGHER DIMENSIONS

image

Now that you’ve mastered some fundamental visualization skills, you can go beyond the standard x- and y-axes by, for example, coloring points according to some additional value or variable or adding a z-axis for constructing a 3D plot. Higher-dimensional plots like this allow you to visually explore your data or models using more variables than would be possible otherwise.

In this chapter, you’ll get into more detail when it comes to handling colors and color palettes in R, and then you’ll look at four new plots: 3D scatterplots, contour plots, pixel image plots, and perspective plots.

25.1 Representing ...

Get The Book of R now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.