Map - polygons - Use mapview package if available
Arguments
- shapes
 like from shapes_counties_from_countyfips(fips_counties_from_state_abbrev("DE"))
- col.regions
 passed to
mapview::mapview()- map.types
 passed to
mapview::mapview()- ...
 passed to mapview
Value
like output of mapview function mapview::mapview(),
if mapview package is installed,
when used with an input that is a spatial object as via sf::read_sf()
Examples
 # \donttest{
  map_shapes_mapview(
    shapes_counties_from_countyfips(fips_counties_from_state_abbrev("DE"))
  )
#> this function is a nice way to map counties etc. but requires the mapview package, which EJAM does not load
#> Warning: mapview package would be needed and is not attached - checking if installed
#> Warning: mapview package appears to be installed but not attached. Try using library(mapview) or require(mapview)
#> NULL
# }
out = ejamit(testpoints_10[1,], radius = 20)
#> Finding blocks nearby.
#> Analyzing 1 points, radius of 20 miles around each.
#> Aggregating at each site and overall.
#> doaggregate is predicted to take 24 seconds 
map_shapes_mapview(
  ejam2shapefile(out, save=F),
  popup = popup_from_ejscreen(out$results_bysite)
)
#> this function is a nice way to map counties etc. but requires the mapview package, which EJAM does not load
#> Warning: mapview package would be needed and is not attached - checking if installed
#> Warning: mapview package appears to be installed but not attached. Try using library(mapview) or require(mapview)
#> NULL