| source(here::here("R", "02_functions.R")) | source(here::here("R", "02_functions.R")) | ||||
| } | } | ||||
| if (!dir.exists(here::here("images"))) dir.create(here::here("images")) | |||||
| source(here::here("R", "03_check-folders.R")) | |||||
| plot_data_join <- function(x, title = "", xlims = xlim(0.5, 5.5), ylims = ylim(-3.5, -0.5)) { | plot_data_join <- function(x, title = "", xlims = xlim(0.5, 5.5), ylims = ylim(-3.5, -0.5)) { | ||||
| plot_data(x, title) + | plot_data(x, title) + |
| source(here::here("R", "02_functions.R")) | source(here::here("R", "02_functions.R")) | ||||
| } | } | ||||
| if (!dir.exists(here::here("images"))) dir.create(here::here("images")) | |||||
| source(here::here("R", "03_check-folders.R")) | |||||
| # Initialize data processing function ---- | # Initialize data processing function ---- | ||||
| if (!dir.exists(here::here("images"))) dir.create(here::here("images")) | |||||
| png_path <- here::here("images", "static", "png") | |||||
| svg_path <- here::here("images", "static", "svg") | |||||
| if (!dir.exists(png_path)) dir.create(png_path, recursive = TRUE) | |||||
| if (!dir.exists(svg_path)) dir.create(svg_path, recursive = TRUE) |
| message = FALSE, | message = FALSE, | ||||
| cache = TRUE | cache = TRUE | ||||
| ) | ) | ||||
| png_path <- file.path("images", "static", "png") | |||||
| svg_path <- file.path("images", "static", "svg") | |||||
| if (!dir.exists(png_path)) dir.create(png_path, recursive = TRUE) | |||||
| if (!dir.exists(svg_path)) dir.create(svg_path, recursive = TRUE) | |||||
| ``` | ``` | ||||
| [gganimate]: https://github.com/thomasp85/gganimate#README | [gganimate]: https://github.com/thomasp85/gganimate#README |