1. Learn
  2. /
  3. Courses
  4. /
  5. Intermediate Regression in R

Connected

Exercise

3D visualizations

Since computer screens and paper are both two-dimensional objects, most plots are best suited to visualizing two variables at once. For the case of three continuous variables, you can draw a 3D scatter plot, but perspective problems usually make it difficult to interpret. There are some "flat" alternatives that provide easier interpretation, though they require a little thinking about to make.

taiwan_real_estate is available; magrittr, plot3D and ggplot2 are loaded.

Instructions 1/2

undefined XP
    1
    2
  • With the taiwan_real_estate dataset, draw a 3D scatter plot of the number of nearby convenience stores on the x-axis, the square-root of the distance to the nearest MRT stop on the y-axis, and the house price on the z-axis.