lxy.explore: Explore a LoCoH-xy object in a interactive map

Description Usage Arguments Details See Also Examples

View source: R/lxy.explore.R

Description

Explore a LoCoH-xy object in a zoomable clickable interactive map

Usage

1
2
3
lxy.explore(lxy, id = NULL, bg = c("esri_world_imagery", "none")[1],
  connect.dots = FALSE, line.popup = FALSE, width = "300px",
  height = width, status = TRUE)

Arguments

lxy

A LoCoH-xy object

id

The name(s) of individuals to export

bg

The background layer (i.e., tile) to display, or 'none'

connect.dots

Whether to draw a line between segments, T/F

line.popup

Enable popup balloons on the line segments, T/F

width

Width of the leaflet map including 'px' for units

height

Height of the leaflet map including 'px' for units

status

Display status messages, T/F

Details

This function displays a Locoh-xy object in an interactive window with a satellite image in the background. You may zoom in and out, pan, and click on locations.

To use this function, you must be using RStudio with the leaflet package installed. To display a satellite image in the background, you must also be connected to the internet.

See Also

lxy.exp.kml

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
if (!require('devtools')) install.packages('devtools')
devtools::install_github('rstudio/leaflet')
mycon <- url("http://tlocoh.r-forge.r-project.org/toni.n5775.2005-08-22.2006-04-23.lxy.RData")
load(mycon)
close(mycon)
lxy.explore(toni.lxy, connect.dots=TRUE, line.popup=TRUE)

## End(Not run)

tlocoh.dev documentation built on May 2, 2019, 5:20 p.m.