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.
Diese Übung ist Teil des Kurses
Multivariate Probability Distributions in R
Anleitung zur Übung
- Plot the
Alcohol
,Malic
, andAlcalinity
variables from thewine
data usingscatterplot3d()
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.
Interaktive Übung
Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.
# Plot the three variables and color them using wine Type
scatterplot3d(___, color = ___)