Description Usage Arguments Value See Also
View source: R/lhs.shiny.select.R
Visually select one hullset per individual from a LoCoH-hullset
1 | lhs.shiny.select(lhs, selection = NULL, gmap = "none")
|
lhs |
A LoCoH-hullset object |
selection |
An object of class locoh.selection containing a named list (one per individual) of selected hullset parameter values |
gmap |
The name of a background image that will be downloaded from Google: |
An object of class locoh.selection containing a list of selected hullset parameter value for each id (see Details)
with plots of isopleth area and isopleth edge:area ratio, and select the value of 'k', 'a', or 'r' that does the best job balancing over- and under-estimation.
This function can be useful when you have a locoh-hullset object with multiple hullsets for each individual over a range of k or a values, and you want to pick one hullset per individual for the rest of the analysis. Note the range of parameter values should be uniform.
This function requires using RStudio and the Shiny package. To return the selection, be sure to click the 'Save and Return' button in the shiny app. The object returned can be passed to the function again as the 'selection' argument.
To display an image from Google in the background, set gmap to "roadmap"
, "satellite"
, "hybrid"
, or "terrain"
.
This requires an internet connection. You may also set gmap to an object of type locoh.gmap
, so the image(s) don't have to be
downloaded each time. See lhs.gmap
(in the tlocoh.dev package).
codelhs.selection, codelhs.gmap
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.