bhaskarvk / tilegramsR

R wrapper for Tilegrams
https://bhaskarvk.github.io/tilegramsR/
Other
52 stars 2 forks source link

Plotting DKOS without ME and NE congressional districts #3

Closed elliottmorris closed 7 years ago

elliottmorris commented 8 years ago

Any way to use this tilegram without the congressional districts in NE & ME?

DKOS_Electoral_College_Map_v1.states@data$trueState

bhaskarvk commented 8 years ago

not sure exactly what you want to do, but if you use the trueState attribute it has the same value for those states.

elliottmorris commented 8 years ago

Like the map on this page http://www.thecrosstab.com/stateodds/ , where the boxed on NE and ME congressional districts aren't there.

bhaskarvk commented 8 years ago

strange the rmapshaper::ms_disolve should have done this. I will investigate tomorrow.

elliottmorris commented 8 years ago

Okay! Thanks for responding after hours. And for the great code

bhaskarvk commented 8 years ago

Unfortunately the polygon dissolving didn't work as expected in this case. I'm afraid for now I don't see any way to accomplish this bar from doing it manually in QGIS or something.

bhaskarvk commented 8 years ago

If you simply don't want to plot them, I think that is doable. but merging is going to be hard.

elliottmorris commented 8 years ago

Could also solve the problem by having them be the same color as the statewide result. Is that doable?

On Oct 19, 2016, at 4:55 PM, Bhaskar V. Karambelkar notifications@github.com wrote:

If you simply don't want to plot them, I think that is doable. but merging is going to be hard.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

bhaskarvk commented 8 years ago

Yes that can always be done, but you will still see the borders of the polygons, unless you set weight=0 or stroke=F

elliottmorris commented 8 years ago

I will try this tomorrow and get back to you.

On Oct 19, 2016, at 8:35 PM, Bhaskar V. Karambelkar notifications@github.com wrote:

Yes that can always be done, but you will still see the borders of the polygons, unless you set weight=0 or stroke=F

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

bhaskarvk commented 7 years ago

I think this works now. I migrated all sp classes to sf classes. See http://rpubs.com/bhaskarvk/tilegramsR