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

Request for Leaflet Choropleth Example #105

Open
pssguy opened this issue Jun 11, 2013 · 9 comments
Open

Request for Leaflet Choropleth Example #105

pssguy opened this issue Jun 11, 2013 · 9 comments
Labels

Comments

@pssguy
Copy link

pssguy commented Jun 11, 2013

If you ever have the time

@ramnathv
Copy link
Owner

Choropleths are on my list of things to support in rCharts. I will leave this issue open to serve me as a reminder.

@pssguy
Copy link
Author

pssguy commented Jan 16, 2014

I've got a bit lost with where you are with choropleth support within rCharts. I seem to recall reading that you have now linked with the DataMaps package as well as Leaflet so is that a better way to go?

I have just been trying out the new choroplethr package. Quite promising but does not have ability to render individual states as yet

@ramnathv
Copy link
Owner

You are right in that I have added bindings for DataMaps in rCharts and it is easier to do minimalistic choropleth maps using DataMaps. I have seen the choroplethr package and it does a terrific job massaging the data and throwing it into ggplot2. I might try to figure out a way to intercept the data sent out to ggplot2 by choroplethr, and then use the DataMaps binding to render it as an interactive map.

I haven't found a good chunk of time to enhance the mapping functionality in rCharts, but hope to get to it soon. Ideally, I need to figure out a way to find more volunteers to focus on specific libraries, which will help speed up development.

@pssguy
Copy link
Author

pssguy commented Jan 16, 2014

re chloroplethr, it is pretty straightforward to extend the examples in the blog post to other ACS tables - and presumably to any other US datasets with breakdown by state/county.
Longer term a clickable map that drills down to the finer detail would be great

I'd like to help but other than develop more Shiny apps based on rCharts and singing your praises, I'm out of my depth. Don't you have students you could press into service?

@ramnathv
Copy link
Owner

Yes. I have looked through the choroplethr code and adapting its functionality for interactive maps should be straightforward.

I do have students, but working on supply chain and operations management problems. So, can't press them into service for an R project :)

@pssguy
Copy link
Author

pssguy commented Jan 16, 2014

After supply chain and operations management problems I would have thought R projects would be light relief for the weekends. I guess you live in Canada's fun city
Good to hear the adaptation wont be too difficult

@ramnathv
Copy link
Owner

Hehe. R only projects would be certainly game. The trouble is the need to be proficient in both JS and R :)

@znmeb
Copy link

znmeb commented Jan 16, 2014

Truila have just released a choropleth package that does about 90 percent of what I'm trying to do with census data. The package is at https://github.com/trulia/choroplethr. My package is at https://github.com/znmeb/pdxcensusdata.

I've got code now to dump a SpatialPolygonDataFrame to a GeoJSON file. So I think the pieces can be pasted together from my code, Trulia's and rCharts. The biggest thing I need now is documentation on how to call the Leaflet parts of rCharts. I was considering forking the bikeshare mapping app and trying to hack that into a census data mapper. ;-)

@timelyportfolio
Copy link
Contributor

One more to consider kartograph for choropleth mapping with an example here. Also wanted to make sure that everyone is aware of the leaflet plugins.

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

No branches or pull requests

4 participants