Skip to content
This repository has been archived by the owner on May 1, 2021. It is now read-only.

Use sf instead of sp? #3

Open
hadley opened this issue Jan 25, 2017 · 6 comments
Open

Use sf instead of sp? #3

hadley opened this issue Jan 25, 2017 · 6 comments

Comments

@hadley
Copy link

hadley commented Jan 25, 2017

It's the way of the future!

@timelyportfolio
Copy link

timelyportfolio commented Jan 26, 2017

This would be very nice. sf made this little example much easier to accomplish. Happy to help if I can. It might be as simple as converting everything and resaving the data files. Or, we could add an argument for class of returned data.

@hrbrmstr
Copy link
Owner

hrbrmstr commented Jan 27, 2017

How about initially along with (these are "live")?

  • counties_sf: Retreive a U.S. county composite map, optionally with a projection, as a simplefeature
  • usa_sf: Retreive a U.S. state composite map, optionally with a projection, as a simplefeature

Granted this isn't on CRAN so wiping & loading would be possible. Has a geom_sf() stabilized somewhere?

@hadley
Copy link
Author

hadley commented Jan 27, 2017

tidyverse/ggplot2#1990

@hrbrmstr
Copy link
Owner

hrbrmstr commented Jan 27, 2017 via email

@hadley
Copy link
Author

hadley commented Jan 27, 2017

@hrbrmstr sure, no problems. I might also have time to contribute some fixes as I'm using this in a class that I'm co-teaching.

@hadley
Copy link
Author

hadley commented Jan 27, 2017

And generally, I'd be tempted to just drop sp support altogether — sf is so much easier, and since this is not on CRAN yet, you're unlikely to break much existing code.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants