d3_cartogram: Create a cartogram in D3

Description Usage Arguments Examples

Description

Create a cartogram in D3

Usage

1
2
d3_cartogram(shape, projection = "Mercator", stroke_col = "#fff",
  stroke_width = 0.5, width = NULL, height = NULL)

Arguments

shape

A sf or sp object.

projection

D3 projection to use.

stroke_col

Color of shape contours.

stroke_width

Width of shape contour in pixels.

width

Desired width for output widget.

height

Desired height for output widget.

Examples

1
# todo

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