How could I create map with colored countries?

, ,

Hello

Below is the kind of maps I would like to draw.
The colors would be changing according to some data.
I would dream of making animated gif files on this basis.

Any idea how I coul proceed?

Thanks

Michel

2 Likes

GMT.jl can be used for this. See for instance the coast() function doc.

1 Like

See also
https://www.generic-mapping-tools.org/GMT.jl/dev/gallery/choropleths/choropleth_DCW/

2 Likes

One quick example using GMT.jl:

Julia code
using GMT
coast(region=(-180, 180, -60, 80), proj=:merc,
    land=:white, water=:lightblue, figsize=15,
    shore=:thinnest,
    frame=(annot=20, grid=20,ticks=20),
    par=(FONT_ANNOT_PRIMARY=5,) 
)
c1 = (country=:US, pen=(0.1,:darkgreen), fill=:lightgreen)
c2 = (country=:RU, pen=(0.1,:red), fill=:pink)
countries = tuple(c1,c2)
coast!(DCW= countries, fmt=:png, show=true)
5 Likes

Is this possible with VegaLite.jl and Vegadatasets?

@Mastomaki, there is one example here that could be a good starting point.

2 Likes