This function allows the user to plot an interactive map of the voter longitude and latitude points.
map_interactive(
voter_file,
voter_id = "registration_number",
f_name = "first_name",
l_name = "last_name",
fips_code = "county_code",
latitude = "lat",
longitude = "lon"
)
A leaflet html widget object
a dataframe with a geometry column for latitude and longitudes created after original voter file was processed with a select geocoder.
a unique identifier on the voter registration file.
the column with first names of voters.
the column with last names of voters.
the column with the fips code for the designated geograhic. unit of interest (i.e. state, county, block, tract).
the column of the of the voter_file that corresponds to #' latitude coordinates. This is optional and a parameter only used if the dataframe used does not have a concatenated geometry column with a "c(latitude, longitude)" structure as in the output from the geocoder censusxy
the column of the of the voter_file that corresponds to #' longitude coordinates. This is optional and a parameter only used if the dataframe used does not have a concatenated geometry column with a "c(latitude, longitude)" structure as in the output from the geocoder censusxy
Loren Collingwood <loren.collingwood@ucr.edu>
Juandalyn Burke <jcburke@uw.edu>