style_geojson: Style a data.frame prior to converting to geojson.

Description Usage Arguments

View source: R/util_github.r

Description

Style a data.frame prior to converting to geojson.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
style_geojson(
  input,
  var = NULL,
  var_col = NULL,
  var_sym = NULL,
  var_size = NULL,
  color = NULL,
  symbol = NULL,
  size = NULL
)

Arguments

input

A data.frame

var

A single variable to map colors, symbols, and/or sizes to.

var_col

The variable to map colors to.

var_sym

The variable to map symbols to.

var_size

The variable to map size to.

color

Valid RGB hex color

symbol

An icon ID from the Maki project https://labs.mapbox.com/maki-icons/ or a single alphanumeric character (a-z or 0-9).

size

One of 'small', 'medium', or 'large'


mapr documentation built on Oct. 23, 2020, 8:22 p.m.