Setup a datamaps chart.
datamaps( data, scope = "world", default = "#ABDDA4", projection = "equirectangular", responsive = TRUE, width = "100%", height = NULL, elementId = NULL )
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 |
elementId | DOM id. |
datamaps(projection = "orthographic") %>% add_graticule()