开始使用免费开始使用

3D plotting techniques

Beyond the 2D plotting techniques, there are also several 3D plotting techniques that you can use to plot multivariate data. You will use the scatterplot3d() function from the scatterplot3d package to produce some basic 3D plots for the wine dataset.

本练习是课程的一部分

Multivariate Probability Distributions in R

查看课程

练习说明

  • Plot the Alcohol, Malic, and Alcalinity variables from the wine data using scatterplot3d() function and color the points by wine type.
  • Make sure that you look up the column names of the wine data to extract the correct ones.

交互式实操练习

通过完成这段示例代码来试试这个练习。

# Plot the three variables and color them using wine Type 
scatterplot3d(___, color = ___)
编辑并运行代码