Katman ekleme

R ile plotly'de Orta Düzey Etkileşimli Veri Görselleştirme

Adam Loy

Statistician, Carleton College

Kaydırıcı metnini 40'a çıkarma ve rengi siyaha çevirme.

R ile plotly'de Orta Düzey Etkileşimli Veri Görselleştirme

Metin katmanı

world_indicators %>%
  plot_ly(x = ~income, y = ~co2) %>%
  add_text(
    x = 6500, y = 1, text = ~year, frame = ~year,
    textfont = list(size = 150, color = toRGB("gray80"))
  )

23-metne-özel-animasyon.gif

R ile plotly'de Orta Düzey Etkileşimli Veri Görselleştirme

Nokta katmanı

world_indicators %>%
  plot_ly(x = ~income, y = ~co2) %>%
  add_text(
    x = 6500, y = 1, text = ~year, frame = ~year,
    textfont = list(size = 150, color = toRGB("gray80"))
  ) %>%
  add_markers(frame = ~year, ids = ~country) %>%
  layout(
    xaxis = list(type = "log"), yaxis = list(type = "log")
  )
R ile plotly'de Orta Düzey Etkileşimli Veri Görselleştirme

İyileştirme

world_indicators %>%
  plot_ly(x = ~income, y = ~co2) %>%
  add_text(
    x = 6500, y = 1, text = ~year, frame = ~year,
    textfont = list(size = 150, color = toRGB("gray80"))
  ) %>%
  add_markers(frame = ~year, ids = ~country) %>%
  layout(
    xaxis = list(type = "log"), yaxis = list(type = "log"),
    showlegend = FALSE
  ) %>%
  animation_slider(hide = TRUE)

23-parlatılmış.gif

R ile plotly'de Orta Düzey Etkileşimli Veri Görselleştirme

23-parlatılmış.gif

R ile plotly'de Orta Düzey Etkileşimli Veri Görselleştirme

Hadi pratik yapalım!

R ile plotly'de Orta Düzey Etkileşimli Veri Görselleştirme

Preparing Video For Download...