Learn R Programming

evolMap (version 1.3.8)

create_map: Interactive map.

Description

create_map produces the structure of an interactive map with 'Leaflet'.

Usage

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"))

Value

Object of class evolMap.

Arguments

center

a numeric two size vector length giving latitude and longitude to set the initial view. (default: 0,0)

zoom

a number greater than or equal to 0 to stablish the startet zoom. (default: 3)

zoomStep

a number greater than 0 to determine the zoom step. (default: 0.25)

provider

character string with the map provider to represent as background, OpenStreetMap by default. See list_providers for available map providers.

main

upper title of the graph.

note

text to appear at the bottom of the map.

mode

a number indicating the graphic style. (default: 1)

defaultColor

a character vector giving a valid html color for marker representation.

controls

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.

language

a character string indicating the language of the graph (en=english (default); es=spanish; ca=catalan).

Author

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

Run this code
# create map
map <- create_map()

# \donttest{
# plot map
plot(map)
# }

Run the code above in your browser using DataLab