Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

28 linhas
635B

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