create_map
produces the structure of an interactive map with 'Leaflet'.
create_map(center = NULL, zoom = NULL, zoomStep = NULL,
provider = "OpenStreetMap", main = NULL, note = NULL, mode = 1,
defaultColor = "#2f7bee", controls = 1:4, language = c("en","es","ca"))
Object of class evolMap
.
a numeric two size vector length giving latitude and longitude to set the initial view. (default: 0,0)
a number greater than or equal to 0 to stablish the startet zoom. (default: 3)
a number greater than 0 to determine the zoom step. (default: 0.25)
character string with the map provider to represent as background, OpenStreetMap by default. See list_providers
for available map providers.
upper title of the graph.
text to appear at the bottom of the map.
a number indicating the graphic style. (default: 1)
a character vector giving a valid html color for marker representation.
a numeric vector indicating which controls will be shown. 1 = tools (filters in mode=2), 2 = buttons, 3 = legends, 4 = search box. NULL hides all controls, negative values deny each control and 0 denies all.
a character string indicating the language of the graph (en=english (default); es=spanish; ca=catalan).
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.
# create map
map <- create_map()
# \donttest{
# plot map
plot(map)
# }
Run the code above in your browser using DataLab