addLayer: addLayer()

Description Usage Arguments Value

View source: R/addLayer.R

Description

Adds a layer to the map

Usage

1
2
addLayer(myGIO, type, label, data = NULL, mapping = NULL,
  options = NULL)

Arguments

type

a string indicating the layer to be added ("world", "us")

label

a string unique to the layer for the chart

data

is a dataframe to be mapped tot he base layer

mapping

is a list object mapping the data to the map features; requires a data key and map key

options

is a vector of objects to set and assign layer behaviors

myGIo

the widget object

Value

myGIO object with base layer attached


mortonanalytics/myGIO documentation built on May 24, 2020, 9:39 p.m.