make_map | R Documentation |
Creates a map of Louisville
make_map(
maps,
var,
hover_name,
legend_title,
year = "",
race = "total",
sex = "total",
units = "Percent",
color_style = "sequential",
palette = "",
reverse_pal = F,
continuous = T,
var_bins,
tiles = T,
bold_nh = T
)
maps |
A list of map files |
var |
The variable name |
hover_name |
The title of the variable for the hover box |
legend_title |
The title for the legend, including <br> in place of line breaks |
units |
The units, defaults to |
color_style , palette |
|
reverse_pal |
Reverses the palette (particularly useful for switching a red-green palette). |
continuous , var_bins |
Is the data continuous? Defaults to |
tiles |
Include a map as a background for the leaflet map?
Can also provide |
bold_nh |
If map of tracts, bold GLP neighborhood boundariess? Defaults to |
The parameters are organized into six sections:
Required: df
, var
Filter and Adjust Data: rollmean
, xmin
, xmax
, peers
, order
Demographics: cat
, include_hispanic
, include_asian
Add Text to Graph: plot_title
, y_title
, caption_text
, subtitle_text
Graph Elements: zero_start
, ylimits
, pctiles
, shading
Manipulate Labels: label_function
, axis_function
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.