Message Boards Message Boards

Population heat maps comparison between the US and Australia?

Posted 8 years ago

Greetings! I am trying to generate two heat maps showing the population of each county in the USA, and compare this to each local government area or state in Australia. Can anyone help on who to do this? ~ Regards, Ben

POSTED BY: Benjamen Gussen

Hi,

something like this?

subdivisions = #["Subdivisions"] & /@ Entity["Country", "UnitedStates"]["AdministrativeDivisions"];
countyData = {#, #["Population"], #[EntityProperty["AdministrativeDivision", "PerCapitaIncome"]], #[EntityProperty["AdministrativeDivision","BorderingCounties"]]} & /@ Flatten[subdivisions];
GeoRegionValuePlot[Rule @@@ Transpose[{countyData[[All, 1]], countyData[[All, 2]]}], ImageSize -> 1000, ColorFunction -> (ColorData["Rainbow"][#^.2] &), GeoRange -> Entity["Country", "UnitedStates"]]

enter image description here

This takes a while to evaluate.

Cheers,

Marco

PS: I took it from one of my other posts, so it also collected data on income etc. Should be possible to adapt to Australia, too.

POSTED BY: Marco Thiel
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract