ramnathv / rMaps

Interactive Maps from R
http://rmaps.github.io
389 stars 194 forks source link

Using ichoropleth wrapper #57

Open petulla opened 10 years ago

petulla commented 10 years ago

Hi I'm using the wrapper following the example http://rmaps.github.io/blog/posts/animated-choropleths/index.html

I want to be able to define the fill colors like this: c(RColorBrewer::brewer.pal(5, 'YlOrRd'), 'white'),

Instead, the wrapper only takes the pal, YlOrRd.

This is crucial when you have a lot of 0 zero values, which appear black.

Can the wrapper work this way?

ramnathv commented 10 years ago

It can be made to work, but will require a small tweak to ichoropleth. I will push a fix this weekend.

petulla commented 10 years ago

Thanks.

petulla commented 10 years ago

A temporary solution is to change the .fill values directly in the css, of course, which I just did. Would be a nice feature, however.