/SPAT-Apps

Prototype apps using the SPAT Functions Package

Primary LanguageRGNU General Public License v3.0GPL-3.0

SPAT Apps

Prototype apps using the SPAT Functions Package.

Active apps:

  • SPAT Correlation Analysis (online): Compare data series side-by-side, explore correlations over time between 2 series, and cluster series in a correlation matrix. Data format is a table with a yr column and 2 or more variable columns. The built-in data set for illustration is SPATData_EnvCov, which includes R/S for 18 stocks of Fraser River Sockeye Salmon and various environmental covariates (e.g. river discharge, sea surface temperature).

How to run the apps locally

Running the apps locally improves speed and doesn't rely on internet access, but requires user to install some programs and packages ahead of time.

There are 2 options for running the apps locally. Both require that you first install and load the SPAT Functions package.

This requires installing several packages. See details below

R GUI

Install Base R, download the app folder (e.g. Correlation Analysis and the launch scripts (1_LaunchGUI.R, LaunchFunction.R, open 1_LaunchGUI.R, and run the script, which includes the package install.

RStudio

Install RStudio, download the app folder (e.g. Correlation Analysis, install SPAT Functions using the code below, open ui.R, and click "Run App"

install.packages("devtools") # Install the devtools package
library(devtools) # Load the devtools package.
install_github("SOLV-Code/SPATFunctions-Package", 
				dependencies = TRUE,
                build_vignettes = FALSE,force = TRUE)
library(SPATFunctions)

Required Packages

Include a list show how to install