PalEON-Project / Shiny

Code for R Shiny App which will allow us to share the stats composition maps.
0 stars 1 forks source link

Shiny

This repository is the source code for interactive maps of PLS tree composition maps on the web using Shiny. You can access the live page here:

Shiny Presettlement Vegetation

Development

Contributors

Program Function

The program, as installed, loads the mean posterior output from Paciorek et al. (in prep) and displays both the mean estimate and standard deviation of the posteriors for 23 tree taxa in the Northwestern United States at the time of settlement. The raw data for the posterior runs comes from Goring et al. (in review) and Charlie Cogbill (REF).

Recent Changes

TODO

Repo Organization

Once the repo is cloned on your desktop and the required packages are installed (shiny, ggplot2, gridExtra, RColorBrewer), the app can be run from the file RunShinyApp.R.

Shiny-App is the folder where the raw code lives. Critically, ui.R and server.R are the files that actually run the program. load_ncdf.R is a pre-processing script that loads the ncdf posteriors from Paciorek et al. and saves them as a long data.frame in Data\all_taxa.RDS.

Shapefiles for Canada and the US are in Data as well. There are older files in ExtraFiles and elsewhere that need to be cleaned up. Shapefiles should all be converted to native R format files for faster loading.