Plot world map with nation borders and defining facecolor per country

41 ビュー (過去 30 日間)
Jelle
Jelle 2014 年 6 月 23 日
コメント済み: XJ_CHEN 2019 年 10 月 23 日
Hi everyone,
What I try to accomplish: a world map with country borders, and adjustable facecolor per country and ideally also the names of the nations.
I'm working on a project at which I'd like to visualize each country's political risk. A country colored in red stands for a high political risk, yellow a medium risk and green a low risk. It should look like this map from Maplecroft. I could just use the Maplecroft picture, but I'd like all pictures of my report to be in the same style.
My trials and errors:
  • I've tried the worldmap function, but couldn't find out how to get the nation borders and additionally how to adjust the colors of the nations.
  • The plot_map and worlddatamap function as defined here and here . However I could not figure out how to color the individual countries/nations.
Would be great to hear from you.
Jelle
  3 件のコメント
Jelle
Jelle 2014 年 6 月 24 日
Dear José-Luis,
Thanks a lot for your quick response!
I think that's exactly what I'm looking for, a file which contains the shape of each individual country. Unfortunately I haven't been able to find such a file. As far as you know, is such a file available?
Best regards,
Jelle

サインインしてコメントする。

回答 (1 件)

Chad Greene
Chad Greene 2015 年 4 月 3 日
The borders function does this easily.
  1 件のコメント
XJ_CHEN
XJ_CHEN 2019 年 10 月 23 日
Thanks, This function works perfectly for this purpose.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMapping Toolbox についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by