You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 satır
576B

  1. source(here::here("R/00_base.R"))
  2. joined_df <- inner_join(x, y, "id")
  3. joined_df <- bind_rows(
  4. proc_data(joined_df, "x"),
  5. proc_data(joined_df, "y")
  6. ) %>%
  7. filter(!(label == "x" & .id == "y") & !(label == "y" & .id == "x")) %>%
  8. mutate(frame = 2, .x = .x + 1)
  9. ij <- initial_dfs %>%
  10. bind_rows(joined_df) %>%
  11. mutate(removed = value %in% c("3", "4", "x3", "y4"),
  12. removed = as.integer(removed)) %>%
  13. arrange(desc(frame), removed) %>%
  14. plot_data("inner_join(x, y)") %>%
  15. animate_plot()
  16. ij <- animate(ij)
  17. anim_save(here::here("images", "inner-join.gif"), ij)