Introduction à la visualisation de données avec ggplot2
Rick Scavetta
Founder, Scavetta Academy
ggplot(iris, aes(x = Sepal.Length,
y = Sepal.Width)) +
geom_point(color = "red")
Type | Propriété |
---|---|
Color | "red" |
Définissez les attributs dans geom_*()
.
L'attribut color est défini sur "red".
ggplot(iris, aes(x = Sepal.Length,
y = Sepal.Width)) +
geom_point(size = 10)
Type | Propriété |
---|---|
Size | 4 |
ggplot(iris, aes(x = Sepal.Length,
y = Sepal.Width)) +
geom_point(shape = 4)
Type | Propriété |
---|---|
Shape | 4 |
Introduction à la visualisation de données avec ggplot2