Úvod do vizualizace dat s ggplot2
Rick Scavetta
Founder, Scavetta Academy
ggplot(iris, aes(x = Sepal.Length,
y = Sepal.Width)) +
geom_point(color = "red")
| Typ | Vlastnost |
|---|---|
| Barva | "red" |
Atributy se nastavují v geom_*().
Atribut barva je nastaven na "red".

ggplot(iris, aes(x = Sepal.Length,
y = Sepal.Width)) +
geom_point(size = 10)
| Typ | Vlastnost |
|---|---|
| Velikost | 4 |

ggplot(iris, aes(x = Sepal.Length,
y = Sepal.Width)) +
geom_point(shape = 4)
| Typ | Vlastnost |
|---|---|
| Tvar | 4 |

Úvod do vizualizace dat s ggplot2