GeoPressureViz is an interactive app to inspect and manually edit migration paths together with the underlying map likelihoods and pressure time series by stationary period. It is useful to compare pressure-, light- and distance-based information before finalizing a path.
The app can start from a tag object already in memory, or from an interim .RData/.rda
file that contains at least tag (and optionally marginal, path_most_likely,
pressurepath, pressurepath_most_likely).
You can retrieve the edited path from the return value of this function (when run_bg = FALSE)
or with shiny::getShinyOption("path_geopressureviz") after the app completes.
Learn more about GeoPressureViz in the GeoPressureManual .
Arguments
- x
One of:
a GeoPressureR
tagobject;a path to an existing
.RData/.rdafile;a tag id (character scalar), interpreted as
"./data/interim/{id}.RData".
- path
Optional GeoPressureR
pathorpressurepathdata.frame. IfNULL, a path is resolved from available inputs in this order:for file/id input (
xcharacter):path_most_likely(if present), thenpressurepath(if present);otherwise fallback to
tag2path(tag, interp = 1).
- marginal
map of the marginal probability computed with
graph_marginal(). Overwrite thepathorpressurepathcontained in the.Rdatafile.- launch_browser
If true (by default), the app runs in your browser, otherwise it runs on Rstudio.
- run_bg
If true, the app runs in a background R session using the
callrpackage. This allows you to continue using your R session while the app is running.
Value
When run_bg = FALSE: The updated path visualized in the app. Can also be retrieved with
shiny::getShinyOption("path_geopressureviz") after the app completes.
When run_bg = TRUE: Returns the background process object.
