datamaps: Initiate map

Description Usage Arguments Examples

View source: R/datamaps.R

Description

Setup a datamaps chart.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
datamaps(
  data,
  scope = "world",
  default = "#ABDDA4",
  projection = "equirectangular",
  responsive = TRUE,
  width = NULL,
  height = NULL,
  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

1
2
datamaps(projection = "orthographic") %>%
  add_graticule()

JohnCoene/datamaps documentation built on Aug. 30, 2020, 7:20 a.m.