探索葡萄酒
在本章中,你將使用名為 wine 的新資料集來探索異常偵測的各種技巧。此資料集的每一列代表一款葡萄酒,其化學成分由兩個數值欄位描述:
pH:酸度高低alcohol:酒精濃度(%)
本練習屬於課程
R 中的異常偵測入門
練習說明
- 繪製
pH與alcohol的散佈圖,並將pH設為 y 軸變數。
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# View the contents of the wine data
head(wine)
# Scatterplot of wine pH against alcohol
plot(___ ~ ___, data = ___)