View source: R/utils_smoov_plot.R
Helper function for smoov() This function takes in map data and the dataframe of values, merging them together when appropriate. This function also performs the subsetting operations if subsetting parameters (states, counties, tracts) are supplied. shp_data_merge() returns a logical vector of length three that 1. Should all of USA be plotted? TRUE/FALSE 2. Should Hawaii be plotted? TRUE/FALSE 3. Should Alaska be plotted? TRUE/FALSE
1 | shp_data_merge(shp, data = NULL, id = "fips", value = NULL, subfips = NULL)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.