Introducere în vizualizarea datelor cu ggplot2
Rick Scavetta
Founder, Scavetta Academy
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".

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

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

Introducere în vizualizarea datelor cu ggplot2