Creates an interactive map (based on latlong) from a genlight object
gl.map.interactive(
x,
matrix = NULL,
standard = TRUE,
symmetric = TRUE,
ind.circles = TRUE,
pop.labels = TRUE,
pop.labels.cex = 12,
provider = "Esri.NatGeoWorldMap"
)
-- a genlight object [including coordinates within the latlong slot]
-- a distance matrix between populations or individuals. The matrix is visualised as lines between individuals/populations. If matrix is asymmetric two lines with arrows are plotted.
-- if a matrix is provided line width will be standardised to be between 1 to 10, if set to true, otherwise taken as given.
-- if a symmetric matrix is provided only one line is drawn based on the lower triangle of the matrix. If set to false arrows indicating the direction are used instead.
-- should individuals plotted as circles, default is TRUE
-- population labels at the center of the individuals of populations, default is TRUE
-- size of population labels, default is 20.
-- passed to leaflet
plots a map
A wrapper around the leaflet package. For possible background maps check as specified via the provider: http://leaflet-extras.github.io/leaflet-providers/preview/index.html
# NOT RUN {
gl.map.interactive(bandicoot.gl)
# }
Run the code above in your browser using DataLab