Message Boards Message Boards

GeoRegionValuePlot[] only works with certain CountryData[] properties?

Posted 7 years ago

I found the first command in the help page for CountryData[].

GeoRegionValuePlot[EntityClass["Country", "Asia"] -> "LiteracyRate"]

Then I looked at the properties and tried a few more. Confusingly some work and some do not. Is there any rhyme or reason to this?

GeoRegionValuePlot[EntityClass["Country", "Asia"] -> "PovertyFraction"]

GeoRegionValuePlot[EntityClass["Country", "Asia"] -> "FemalePopulation"]

GeoRegionValuePlot[ EntityClass["Country", "Asia"] -> "ElectricityConsumption"]

GeoRegionValuePlot[EntityClass["Country", "Asia"] -> "LaborForce"]

Of course, extracting the data, and building the list input to this command also works, thusly:

GeoRegionValuePlot[
 Flatten[{# ->  CountryData[#, "PovertyFraction"]} & /@ EntityList[EntityClass["Country", "Asia"]]]]

Thanks in advance.

POSTED BY: Aeyoss Antelope
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