Learn R Programming

bivariateLeaflet (version 0.1.0)

create_bivariate_map: Create Bivariate Choropleth Map

Description

Create Bivariate Choropleth Map

Usage

create_bivariate_map(
  data,
  var_1,
  var_2,
  color_matrix = NULL,
  custom_labels = NULL
)

Value

A leaflet map object

Arguments

data

A spatial data frame

var_1

Character string naming first variable

var_2

Character string naming second variable

color_matrix

Optional custom color matrix

custom_labels

Optional vector of custom HTML labels for tooltips