Learn R Programming

datamaps (version 0.0.3)

datamaps: Initiate map

Description

Setup a datamaps chart.

Usage

datamaps(data, scope = "world", default = "#ABDDA4",
  projection = "equirectangular", responsive = TRUE, width = "100%",
  height = "100%", elementId = NULL)

Arguments

data

data.frame.

scope

map scope.

default

default color for missing values.

projection

map projection.

responsive

whether for map to be responsive.

width, height

Must be a valid CSS unit (like '100%', '400px', 'auto') or a number, which will be coerced to a string and have 'px' appended.

elementId

DOM id.

Examples

Run this code
# NOT RUN {
datamaps(projection = "orthographic") %>%
  add_graticule()

# }

Run the code above in your browser using DataLab