leafletPlot: A shortcut for generating choropleth maps

Description Usage Arguments Value

View source: R/ez_choropleth.R

Description

A shortcut for generating choropleth maps

Usage

1
2
3
4
5
6
7
8
9
leafletPlot(
  data_set,
  col_name,
  col_variable,
  type_of_map,
  bins_of_map,
  col_variable_unit = "",
  title = "Chloropleth Map"
)

Arguments

data_set

The name of the data set

col_name

The column name in the data set containing the regions (must be in quotes)

col_variable

The column name containing the variable of interest (must be in quotes)

type_of_map

The type of map you wish to specify; possible options are "countries", "us_states"

bins_of_map

The type of bins user wishes to use for map; must be a vector

col_variable_unit

The units of your variable; must be in quotes; if it is a percentage, put this argument as "%"

title

The title of the chloropleth map; must be in quotes

Value

Leaflet Map


shanealman/EZRplots documentation built on May 13, 2020, 3:29 a.m.