add_legend: Add a legend to a map

Description Usage Arguments Value Examples

Description

Add a legend to a map

Usage

1
2
add_legend(map, title = "", prefix = "", suffix = "",
  d3_format = NULL, d3_locale = NULL)

Arguments

map

A r2d3map htmlwidget object.

title

Title for the legend.

prefix

A prefix of legend labels.

suffix

A suffix of legend labels.

d3_format

A string passed to d3.format, see https://github.com/d3/d3-format. If used prefix and suffix are ignored.

d3_locale

Locale for d3_format, for exemple "fr-FR" for french, see possible values here https://github.com/d3/d3-format/tree/master/locale.

Value

A r2d3map htmlwidget object.

Examples

1
2
3
4
5
6
## Not run: 

# todo


## End(Not run)

dreamRs/r2d3maps documentation built on May 25, 2019, 8:17 a.m.