Introductie tot datavisualisatie met ggplot2
Rick Scavetta
Founder, Scavetta Academy
ggplot(iris, aes(x = Sepal.Length,
y = Sepal.Width)) +
geom_point(color = "red")
| Type | Eigenschap |
|---|---|
| Kleur | "red" |
Stel attributen in geom_*() in.
Het attribuut color is ingesteld op "red".

ggplot(iris, aes(x = Sepal.Length,
y = Sepal.Width)) +
geom_point(size = 10)
| Type | Eigenschap |
|---|---|
| Grootte | 4 |

ggplot(iris, aes(x = Sepal.Length,
y = Sepal.Width)) +
geom_point(shape = 4)
| Type | Eigenschap |
|---|---|
| Vorm | 4 |

Introductie tot datavisualisatie met ggplot2