This function helps the user make a leaflet map using the latitude and longitudes for the states/region/country you are visualizing. There are many datasets within this package which can used as examples for checking the function like the BRA_distinct for Brazilian states, IND_distinct for Indian states, USA_distinct for USA states and RUS_distinct for Russian states.
leaflet_maps(longitude, latitude, state, total_cases)
longitude | A column passed from the dataframe which contains the longitude for the maps. |
---|---|
latitude | A column passed from the dataframe which contains the latitude for the maps. |
state | A column passed from the dataframe which contains the state names for the popup on the leaflet maps. |
total_cases | A column passed from the dataframe which cintains the total number of cases for each state. |
returns a leaflet map with longitudes and latitudes for the map with state names.
Varsha Ujjinni Vijay Kumar
if (FALSE) { leaflet(longitude = df$lng,latitude = df$lat, state = df$state,total_cases = df$total_cases) }