An R package providing tools to visualize movement data (e.g. from GPS tracking) and temporal changes of environmental data (e.g. from remote sensing) by creating video animations.
use_disk()
Disk usage for creating frames enabled.
Directory: 'C:\Users\Carlos\AppData\Local\Temp\RtmpS2Hx6M/moveVis'
Maximum number of frames which will be hold in memory: auto.
use_disk(
frames_to_disk = TRUE,
dir_frames = paste0(tempdir(), "/frame"),
n_memory_frames = NULL,
verbose = TRUE
)
Disk usage for creating frames enabled.
Directory: 'C:\Users\Carlos\AppData\Local\Temp\RtmpS2Hx6M/frame'
Maximum number of frames which will be hold in memory: auto.
use_disk()
Disk usage for creating frames enabled.
Directory: 'C:\Users\Carlos\AppData\Local\Temp\RtmpS2Hx6M/moveVis'
Maximum number of frames which will be hold in memory: auto.
Even though the folder I want to select is not within the temporary directory, I thought it was a better example to show that I can't make it work.
On the other hand, if I use "frames_spatial" and then "animate_frames" it correctly generates a gif file. But if I then run it again with a new dataframe that has less rows than the previous one, it creates a gif but using all the frames in the temporary folder. This way the second gif contains an animation with the frames of the second dataframe and then the ones of the first one.
Example: First dataframe from which 50 frames are created. Second dataframe from which 30 frames are created. The second gif has the correct 30 frames and then the last 20 from the first one that are still in the temporary folder where the frames are generated.
That's why I wanted to generate them in different folders since it's practical for me to have both the frames and the animated gif available.
Thanks in advance and again congratulations on the package created.
Congratulations on the package! I tried to configure the directory where the frames are saved during their creation and it didn't work.
Matrix products: default locale: [1] LC_COLLATE=Spanish_Argentina.1252 LC_CTYPE=Spanish_Argentina.1252 LC_MONETARY=Spanish_Argentina.1252 [4] LC_NUMERIC=C LC_TIME=Spanish_Argentina.1252
attached base packages: [1] grid parallel tools compiler stats graphics grDevices utils datasets methods base
other attached packages: [1] moveVis_0.10.5
loaded via a namespace (and not attached): [1] Rcpp_1.0.5 pillar_1.4.6 class_7.3-17 digest_0.6.25 lubridate_1.7.9 memoise_1.1.0 lifecycle_0.2.0
[8] tibble_3.0.3 gtable_0.3.0 lattice_0.20-41 pkgconfig_2.0.3 rlang_0.4.7 DBI_1.1.0 magick_2.4.0
[15] curl_4.3 rgdal_1.5-16 e1071_1.7-3 withr_2.2.0 xml2_1.3.2 httr_1.4.2 raster_3.3-13
[22] generics_0.0.2 vctrs_0.3.4 classInt_0.4-3 cowplot_1.1.0 tidyselect_1.1.0 glue_1.4.2 sf_0.9-5
[29] R6_2.4.1 pbapply_1.4-3 gifski_0.8.6 sp_1.4-2 ggplot2_3.3.2 purrr_0.3.4 magrittr_1.5
[36] units_0.6-7 scales_1.1.1 ellipsis_0.3.1 move_4.0.4 colorspace_1.4-1 geosphere_1.5-10 av_0.5.0
[43] slippymath_0.3.1 KernSmooth_2.23-17 munsell_0.5.0 lwgeom_0.2-5
Even though the folder I want to select is not within the temporary directory, I thought it was a better example to show that I can't make it work.
On the other hand, if I use "frames_spatial" and then "animate_frames" it correctly generates a gif file. But if I then run it again with a new dataframe that has less rows than the previous one, it creates a gif but using all the frames in the temporary folder. This way the second gif contains an animation with the frames of the second dataframe and then the ones of the first one.
Example: First dataframe from which 50 frames are created. Second dataframe from which 30 frames are created. The second gif has the correct 30 frames and then the last 20 from the first one that are still in the temporary folder where the frames are generated.
That's why I wanted to generate them in different folders since it's practical for me to have both the frames and the animated gif available.
Thanks in advance and again congratulations on the package created.