การแสดงผลข้อมูลด้วย ggplot2 เบื้องต้น
Rick Scavetta
Founder, Scavetta Academy

หน้าที่
หลัก:
รอง:
หลักการชี้นำ
ห้าม:
ควรทำเสมอ:






ggplot(iris, aes(x = Sepal.Length,
y = Sepal.Width,
color = Species)) +
geom_point()

ggplot(iris, aes(color = Sepal.Length,
y = Sepal.Width,
x = Species)) +
geom_point()






ggplot(iris, aes(x = Sepal.Length,
y = Sepal.Width,
col = Species)) +
geom_point()

ggplot(iris, aes(x = Sepal.Length,
y = Sepal.Width,
col = Species)) +
geom_point(position = "jitter",
alpha = 0.5)

การแสดงผลข้อมูลด้วย ggplot2 เบื้องต้น