wmurphyrd / fiftystater

🗺Easy 50 state maps for R & ggplot2
28 stars 5 forks source link

non-fortified and as sf #7

Closed sebdalgarno closed 6 years ago

sebdalgarno commented 6 years ago

It would be really useful to have a non-fortified sf polygon version of fifty_states for use in e.g.

ggplot() + geom_sf(data = fifty_states)

I imagine that might be simple if you fortified a sf or sp object to get fifty_states. Is it possible and simple to do?

sebdalgarno commented 6 years ago

see https://stackoverflow.com/questions/49526198/convert-a-fortified-data-frame-back-to-sf-object/49539006#49539006 for method to convert from fortified to sf