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.

29 linhas
624B

  1. source(here::here("R/03_base2.R"))
  2. union_df <- union(x,y) # %>% arrange(id)
  3. union_df <-
  4. bind_rows(
  5. proc_data2(union_df, "x"),
  6. proc_data2(union_df, "y")
  7. ) %>%
  8. filter(.id != "y" | (.id == "y" & .y == -4)) %>%
  9. mutate(frame = 2, .x = .x + 2)
  10. u <-
  11. initial_dfs %>%
  12. bind_rows(union_df) %>%
  13. arrange(desc(frame)) %>%
  14. filter(!(label == "id")) %>%
  15. plot_data("union(x, y)") %>%
  16. animate_plot()
  17. u <- animate(u)
  18. anim_save(here::here("images", "union.gif"), u)
  19. u_g <- union(x, y) %>% # %>% arrange(id)
  20. proc_data2() %>% filter(label != "id") %>%
  21. plot_data("union(x, y)")
  22. save_static_plot(u_g, "union")