An interactive visualization and filtering tool for geospatial trade data tailored for use by SESYNC research groups.
Because this is currently a private repository, installation has an extra step or two:
```{r install}
install.packages(c('devtools', 'httr'));
library(devtools); library(httr);
httr::set_config( config( ssl_verifypeer = 0L ));
devtools::install_github( 'ajulca/fishRmap', auth_user = '[your SESYNC GitLab username]', auth_token = '[The token you just made]', host = 'https://gitlab.sesync.org/api/v3' )
library(fishRmap)
Alternatively, it may be necessary to install from tarball:
```{r install2}
install.packages('fishRmap_0.0.1.tar.gz', repos = NULL, type = 'source')
library(fishRmap)
Using the fishRmap function:
```{r use}
fishRmap([either a 'String path to your data', or a data.frame])
fishRmap(myData, import = 'Import', export = 'Export', species = 'Species', value = 'value', year = 'Year', iso = 'numeric', importOnly = FALSE, exportOnly = FALSE)
?fishRmap ```
The user does not interact with this directly, but it is where the developer will do most of their work. "js/fishRmap.js" is the primary script for the interface "js/api.js" is the correllary to api.R; this allows communication between client and "server" side "js/fishRmap.css" is main css file "build/" directory contains dependency libraries * "ajax/" directory contains geo/topojson data to be used for map
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.