Plots and statistics generated for GBIF regions.
Install R packages. You might need to install some other dependecies from CRAN too.
devtools::install_github("jhnwllr/gbifapi")
devtools::install_github("jhnwllr/gbifregionalstats", subdir="gbif_regional_statistics")
- Open
/gbif_regional_statistics/gbifregionalstats/plot_gallery_notebook.rmd
in Rstudio - Run code chunk corresponding to plot that you want.
- Find chunks in
/gbif_regional_statistics/gbifregionalstats/plot_gallery_notebook.rmd
with scala code. - These need to run inside a
spark2-shell
instance on c4 or c5. - csv files will be saved to
/mnt/auto/misc/download.gbif.org/custom_download/jwaller/
Example settings for spark2-shell
spark2-shell --num-executors 40 --executor-cores 5 --driver-memory 8g --driver-cores 4 --executor-memory 32g
The csv files will be put in the public downloads folder, so they are accessible by the R scripts.