Wolfram Language

Open live version

Color Countries by GDP

Make a world map with countries colored by GDP.


code

X

Make a map of just South America:

X

how it works

This example was live-coded at the Wolfram Research booth at SXSW, March 9, 2014.

Evaluating CountryData without arguments returns a list of countries. Here is that list in abbreviated form:

In[1]:=
X
Out[1]=

This makes a map showing each of the countries in that list colored by GDP:

In[2]:=
X
Out[2]=

Specify the region to make a plot of a smaller area:

In[3]:=
X
Out[3]=