Utilisation des attributs

Introduction à la visualisation de données avec ggplot2

Rick Scavetta

Founder, Scavetta Academy

Attributs esthétiques ? Attributs !

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".

Introduction à la visualisation de données avec ggplot2

Attributs esthétiques ? Attributs !

ggplot(iris, aes(x = Sepal.Length, 
                 y = Sepal.Width)) + 
  geom_point(size = 10)
Type Propriété
Size 4

Introduction à la visualisation de données avec ggplot2

Attributs esthétiques ? Attributs !

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

Passons à la pratique !

Introduction à la visualisation de données avec ggplot2

Preparing Video For Download...