Chapter 5. Adding the Third Dimension

In this chapter, we will cover the following recipes:

  • Constructing a 3D scatter plot
  • Generating a 3D scatter plot with text
  • A simple 3D pie chart
  • A simple 3D histogram
  • Generating a 3D contour plot
  • Integrating a 3D contour and a surface plot
  • Animating a 3D surface plot

Introduction

Three-dimensional images (pie charts or histograms), contours, surface plots, and scatter plots are great tools for analyzing multivariate data. Data that comprises more than two variables or densities, or even data with a high volume (medical or geosciences data), can be studied in detail when the third dimension is added. In this chapter, we will study different ways to analyze multivariate datasets, create interactive plots, and also learn ...

Get R: Recipes for Analysis, Visualization and Machine Learning 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.