create_map {evolMap} | R Documentation |
Interactive map.
Description
create_map
produces the structure of an interactive map with 'Leaflet'.
Usage
create_map(center = NULL, zoom = NULL, provider = "OpenStreetMap",
note = NULL, defaultColor = "#2f7bee",
controls = 1:4, language = c("en","es","ca"))
Arguments
center |
a numeric two size vector length giving latitude and longitude to set the initial view. |
zoom |
a number greater than or equal to 0 to stablish the startet zoom. |
provider |
character string with the map provider to represent as background, OpenStreetMap by default. See |
note |
text to appear at the bottom of the map. |
defaultColor |
a character vector giving a valid html color for marker representation. |
controls |
a numeric vector indicating which controls will be shown. 1 = tools, 2 = buttons, 3 = legends, 4 = search box. NULL hides all controls, negative values deny each control and 0 denies all. |
language |
a character string indicating the language of the graph (en=english (default); es=spanish; ca=catalan). |
Value
Object of class evolMap
.
Author(s)
Modesto Escobar modesto@usal.es, Department of Sociology and Communication, University of Salamanca, Carlos Prieto cprietos@usal.es, and David Barrios metal@usal.es, Bioinformatics Service, University of Salamanca.
Examples
# create map
map <- create_map()
# plot map
plot(map)