Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

25 lines
597B

  1. source(here::here("R/00_base.R"))
  2. joined_dfs <- left_join(x, y, "id") %>%
  3. proc_data("x") %>%
  4. mutate(frame = 2, .x = .x + 1)
  5. extra_blocks <- inner_join(x, y, "id") %>%
  6. select(id) %>%
  7. proc_data("y") %>%
  8. mutate(frame = 2, .x = .x + 1)
  9. lj <- initial_dfs %>%
  10. bind_rows(joined_dfs) %>%
  11. bind_rows(extra_blocks) %>%
  12. mutate(color = ifelse(is.na(value), "#ffffff", color)) %>%
  13. plot_data("left_join(x, y)") %>%
  14. animate_plot()
  15. lj <- animate(lj)
  16. anim_save(here::here("images", "left-join.gif"), lj)
  17. lj_g <- plot_data(joined_dfs, "left_join(x, y)")
  18. save_static_plot(lj_g, "left-join")