Click here to see the SAS code.
Click here to see the example.
---------------------------------------------------------------
This map was somewhat easy to create.
First I found a website with a list of all the countries
where they drive on the Left side of the road, and read them
into a sas data set.
Then I got a list of all the countries in the sas/graph world map.
(I did this by getting the country 'id' numbers from the map,
and then using a sas format to convert the number to a text name).
I merged the 2 datasets, assuming that all the countries that
don't drive on the left must drive on the Right.
Then it was a simple matter to plot the world map, and color the
countries based on which side they drive on.
One little enhancement - I used the 'html' option to add html
hover text, so you could easily see what the country names are.
This is based on data from ... here.
Back to Samples Index