Mr Jim
May 23, 2018
The number of US congressional districts are allocated on a state by state basis according to the total number of house seats fixed at 435 and the result of the US census conducted every ten years.
The purpose is to consider how to do absolutely fair congressional district apportionment using clustering and plotting capability of R. It is the antithesis of gerrymander.
Consider K-means clustering and heirarchical clustering. This is an exploration of it. The application uses heirarchical clustering.
The user interace provides option for user to enter:
The result is drawn on a map and on a dendro plot.
These libraries are used:
knitr::include_graphics('screen_shot.png', dpi = NULL)
end