เริ่มต้นใช้งานเริ่มต้นใช้งานได้ฟรี

Scatterplots

This exercise will continue to expand the ggplot2 layers with geom_point() for creating scatterplots and geom_smooth() to add a local regression (loess) fit line. You'll also add another layer facet_wrap(vars(x)) to obtain a panel plot by a third variable x.

The ggplot2 and dplyr packages and the abalone dataset are already loaded for you.

แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร

R For SAS Users

ดูคอร์ส

แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ

ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์

# Create scatterplot of abalone wholeWeight by diameter
ggplot(___, aes(___, ___)) + 
	___
แก้ไขและรันโค้ด