How to set the colour of a polygon based on correlation values

1 回表示 (過去 30 日間)
Kean Foster
Kean Foster 2015 年 5 月 19 日
コメント済み: Kean Foster 2015 年 6 月 9 日
I am trying to plot correlation maps that show the correlation between a region and a given climatic driver. I want to colour the polygons of the region according to their correlation indices with a specific driver. How is this best achieved. I have been using point features until now and then plotting using scatterm function which allows one to give the correlation data as criteria for the colours eg.
h1 = scatterm(lats, lons, 100, corrdata(m,:),'o','filled');
Is there a way to do a similar thing but using polygon shape-files instead (different areas in the world)? For example, if I calculated the correlations between an observed phenomena in each of the 50 countries in Europe and MSL pressure, how can I plot and colour the different polygons (in a shape-file) based on these correlation values?
Thanks in advance

採用された回答

Nalini Vishnoi
Nalini Vishnoi 2015 年 5 月 20 日
Hi Kean,
It is possible using MATLAB. You can find a very relevant example in this post.
I hope this helps.
Nalini
  1 件のコメント
Kean Foster
Kean Foster 2015 年 6 月 9 日
Thanks for your suggestion Nalini.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMap Display についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by