Menggunakan atribut

Pengantar Visualisasi Data dengan ggplot2

Rick Scavetta

Founder, Scavetta Academy

Aesthetics? Atribut!

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".

Pengantar Visualisasi Data dengan ggplot2

Aesthetics? Atribut!

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

Pengantar Visualisasi Data dengan ggplot2

Aesthetics? Atribut!

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

Pengantar Visualisasi Data dengan ggplot2

Ayo berlatih!

Pengantar Visualisasi Data dengan ggplot2

Preparing Video For Download...