I wake up every morning in a house that was built by slaves (Michelle Obama)
Some days ago I was invited by the people of Highcharts to write a post in their blog. What I have done is a simple but revealing map of women senators of the United States of America. Briefly, this is what I’ve done to generate it:
- read from the US senate website a XML file with senators info
- clean and obtain gender of senators from their first names
- summarize results by state
- join data with a US geojson dataset to create the highmap
You can find details and R code here.
It is easy creating a highcharts using highcharter, an amazing library as genderizeR, the one I use to obtain gender names. I like them a lot.
1 thought on “Visualizing the Gender of US Senators With R and Highmaps”