Utilizarea atributelor

Introducere în vizualizarea datelor cu ggplot2

Rick Scavetta

Founder, Scavetta Academy

Estetică? Atribute!

ggplot(iris, aes(x = Sepal.Length, 
                 y = Sepal.Width)) + 
  geom_point(color = "red")
Tip Proprietate
Culoare "red"

Setați atributele în geom_*().

Atributul color este setat la "red".

Introducere în vizualizarea datelor cu ggplot2

Estetică? Atribute!

ggplot(iris, aes(x = Sepal.Length, 
                 y = Sepal.Width)) + 
  geom_point(size = 10)
Tip Proprietate
Dimensiune 4

Introducere în vizualizarea datelor cu ggplot2

Estetică? Atribute!

ggplot(iris, aes(x = Sepal.Length, 
                 y = Sepal.Width)) + 
  geom_point(shape = 4)
Tip Proprietate
Formă 4

Introducere în vizualizarea datelor cu ggplot2

Să exersăm!

Introducere în vizualizarea datelor cu ggplot2

Preparing Video For Download...