開始使用免費開始

3D 繪圖技巧

除了 2D 繪圖技巧外,你也可以使用多種 3D 繪圖方式來呈現多變量資料。你將使用 scatterplot3d 套件中的 scatterplot3d() 函式,替 wine 資料集產生一些基本的 3D 圖。

本練習屬於課程

R 的多變量機率分配

檢視課程

練習說明

  • 使用 scatterplot3d() 函式,從 wine 資料中繪製 AlcoholMalicAlcalinity 三個變數,並依葡萄酒種類為點著色。
  • 記得先查看 wine 資料的欄位名稱,確保擷取到正確的欄位。

動手互動練習

試著完成這個範例程式碼,體驗一下這個練習。

# Plot the three variables and color them using wine Type 
scatterplot3d(___, color = ___)
編輯並執行程式碼