library(tmap)
boothbay <-
boothbay |>
tibble::as_tibble() |>
sf::st_as_sf()
boothbay
## Simple feature collection with 2232 features and 86 fields
## Geometry type: POLYGON
## Dimension: XY
## Bounding box: xmin: -69.69212 ymin: 43.7545 xmax: -69.51428 ymax: 43.94156
## Geodetic CRS: WGS 84
## # A tibble: 2,232 × 87
## osm_id name `addr:city` `addr:county` `addr:hamlet` `addr:housenumber` `addr:locality` `addr:postcode` `addr:state` `addr:street`
## <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
## 1 234813057 <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA>
## 2 234813059 <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA>
## 3 234813061 <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA>
## 4 234813064 <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA>
## 5 235324281 Southp… Southport <NA> <NA> 1032 <NA> 04576 <NA> Hendricks Hi…
## 6 235324664 Robins… Southport <NA> <NA> 20 <NA> 04576 ME Hendricks Hi…
## 7 235326155 Southp… Southport <NA> <NA> 443 <NA> 04576 <NA> Hendricks Hi…
## 8 307439615 <NA> Boothbay <NA> <NA> 92 <NA> 04537 ME Isle of Spri…
## 9 307439616 <NA> Boothbay <NA> <NA> 96 <NA> 04537 ME Isle of Spri…
## 10 307439617 <NA> Boothbay <NA> <NA> 60 <NA> 04537 ME Isle of Spri…
## # ℹ 2,222 more rows
## # ℹ 77 more variables: `addr:unit` <chr>, amenity <chr>, area <chr>, barrier <chr>, beauty <chr>, brand <chr>, `brand:wikidata` <chr>,
## # building <chr>, `building:colour` <chr>, `building:levels` <chr>, `building:material` <chr>, check_date <chr>, club <chr>,
## # company <chr>, craft <chr>, cuisine <chr>, denomination <chr>, description <chr>, ele <chr>, emergency <chr>, `fuel:diesel` <chr>,
## # `fuel:octane_89` <chr>, `gnis:county_id` <chr>, `gnis:created` <chr>, `gnis:feature_id` <chr>, `gnis:state_id` <chr>, golf <chr>,
## # guest_house <chr>, healthcare <chr>, `healthcare:speciality` <chr>, heritage <chr>, `heritage:operator` <chr>,
## # `heritage:website` <chr>, historic <chr>, house <chr>, information <chr>, layer <chr>, leisure <chr>, lit <chr>, man_made <chr>, …
tmap_mode(("view"))
## tmap mode set to interactive viewing
tm_shape(boothbay) +
tm_polygons()