Attributen gebruiken

Introductie tot datavisualisatie met ggplot2

Rick Scavetta

Founder, Scavetta Academy

Aesthetics? Attributen!

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

Introductie tot datavisualisatie met ggplot2

Aesthetics? Attributen!

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

Introductie tot datavisualisatie met ggplot2

Aesthetics? Attributen!

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

Introductie tot datavisualisatie met ggplot2

Laten we oefenen!

Introductie tot datavisualisatie met ggplot2

Preparing Video For Download...