Exploring wine
Throughout this chapter, you'll explore techniques for anomaly detection with a new data set called wine. Each row of this data set refers to a wine whose chemical composition is described by two numeric fields:
pH: how acidic the wine isalcohol: the wine's alcohol content (%)
แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร
Introduction to Anomaly Detection in R
คำแนะนำการฝึกหัด
- Produce a scatter plot of
pHandalcoholwithpHas the y-axis variable.
แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ
ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์
# View the contents of the wine data
head(wine)
# Scatterplot of wine pH against alcohol
plot(___ ~ ___, data = ___)