Doordacht kleurgebruik

Interactieve datavisualisatie met plotly in R

Adam Loy

Statistician, Carleton College

Interactieve datavisualisatie met plotly in R

Een derde variabele toevoegen

wine %>%
  plot_ly(x = ~Flavanoids, y = ~Alcohol, color = ~Type) %>%
  add_markers()
Interactieve datavisualisatie met plotly in R

Een kwantitatieve variabele toevoegen

wine %>%
  plot_ly(x = ~Flavanoids, y = ~Alcohol, color = ~Color) %>%
  add_markers()
Interactieve datavisualisatie met plotly in R

RColorBrewer-paletten

wine %>%
  plot_ly(x = ~Flavanoids, y = ~Alcohol, color = ~Type) %>%
  add_markers(colors = "Dark2")
Interactieve datavisualisatie met plotly in R

Handmatige paletten

wine %>%
  plot_ly(x = ~Flavanoids, y = ~Alcohol, color = ~Type) %>%
  add_markers(colors = c("orange", "black", "skyblue"))
Interactieve datavisualisatie met plotly in R

Laten we oefenen!

Interactieve datavisualisatie met plotly in R

Preparing Video For Download...