convert a fortified data.frame back to sf object
问题 fiftystater package provides a great map of USA that has Hawaii and Alaska as insets below. The object fifty_states comes already fortified for use with ggplot2. However, I would like to plot this as an sf object using geom_sf. As a more general question, what is the best way to convert a fortified data.frame back into sf polygon? library(fiftystater) fifty_states <– fifty_states > head(fifty_states) long lat order hole piece id group 1 -85.07007 31.98070 1 FALSE 1 alabama Alabama.1 2 -85