Make a key for a marker map
tbl_marker_key.Rd
Designed for use with maps created using layer_show_markers()
Usage
tbl_marker_key(
data,
title_col = NULL,
groupname_col = NULL,
number_col = NULL,
color = FALSE,
palette = NULL
)
Arguments
- data
Data frame or sf object with marker data
- title_col
Title column name, Default: NULL
- groupname_col
Group column name, Default: NULL
- number_col
Number column name, Default: NULL. If NULL and data does not contain a column named "number", add a number column created using
dplyr::row_number()
function.- color
If TRUE, apply a cell fill color to the group headings in the table (defined by groupname_col)
- palette
palete to use for the group heading fill colors (passed to
group_data_pal()
)