Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is the sf graphic type working already? #147

Closed
kweinert opened this issue Apr 13, 2021 · 2 comments
Closed

Is the sf graphic type working already? #147

kweinert opened this issue Apr 13, 2021 · 2 comments

Comments

@kweinert
Copy link

kweinert commented Apr 13, 2021

Hi, I recently found this amazing package and I am delighted. However, I could not get the sf graphic type working. When I read an sf object using sf::read_sf and than start esquisser(), the loaded dataset is not available in the data dropdown menu. I skimmed through the source code but I could not really understand how the charts are produced.

Is sf supported already?

Update:
Using sf::st_read instead of sf::read_sf, the dataset actually appears in the data dropdown menu. However, I still cannot produce a chart, the sf icon is always deactivated.

Kind regards from Berlin
Karsten

@pvictor
Copy link
Member

pvictor commented Apr 13, 2021

Hello,

Yes there was some bugs, you need to install dev version of esquisse and datamods to make it work:

remotes::install_github("dreamRs/datamods")
remotes::install_github("dreamRs/esquisse")

library(sf)
nc <- st_read(system.file("shape/nc.shp", package="sf"))
esquisse::esquisser(nc)

This should display:

image

I have only tested simple choropleth maps, let me know how it works for you and how you want to use sf here.

Victor

@kweinert
Copy link
Author

Works great, thanks! Awesome package!

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

No branches or pull requests

2 participants