Pengantar Visualisasi Data dengan ggplot2
Rick Scavetta
Founder, Scavetta Academy
ggplot(iris, aes(x = Sepal.Length,
y = Sepal.Width)) +
geom_point(color = "red")
| Tipe | Properti |
|---|---|
| Warna | "red" |
Atur atribut di geom_*().
Atribut color di-set ke "red".

ggplot(iris, aes(x = Sepal.Length,
y = Sepal.Width)) +
geom_point(size = 10)
| Tipe | Properti |
|---|---|
| Ukuran | 4 |

ggplot(iris, aes(x = Sepal.Length,
y = Sepal.Width)) +
geom_point(shape = 4)
| Tipe | Properti |
|---|---|
| Bentuk | 4 |

Pengantar Visualisasi Data dengan ggplot2