mapview can be used in piped expressions using
%>%
, most likely at the very end of it…
Here are just a few examples of piped workflows:
breweries colored by district
breweries %>%
st_intersection(franconia) %>%
mapview(zcol = "district")
brewery density by county
franconia %>%
mutate(count = lengths(st_contains(., breweries)),
density = count / as.numeric(st_area(.))) %>%
mapview(zcol = "density")