Group Abstract Group Abstract

Message Boards Message Boards

Population heat maps comparison between the US and Australia?

Posted 10 years ago
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