0

I meet a problem and I don't know how to do it. I would like to output 2014-2018 back trajectories cluster results. But the clusters are not consistently from the same region in each year. I would like to renumber and color the cluster so that the region is the same. For example: C1- Atlantic West of UK. C2 – English Chanel, Bay of Biscay. C3 – Mainland France. C4 – North Sea, C5- Northern Atlantic and Mainland UK. C6 – Northern coast of Germany, Belgium, and Netherlands.

Here are my codes:

clust <- trajCluster(selectByDate(traj, year=2014), method = "Angle", 
                     n.cluster = 6, 
                     col = 'jet',
                     map.cols = openColours("Paired", 10))

I attached some previous figures from my results. This is the results of 2014 and 2015. As you see the cluster number from the same region is different

As you see the cluster number from the same region is different enter image description here

Park
  • 14,771
  • 6
  • 10
  • 29
  • 1
    Probably need to class your country values as factor so the order gets preserved. Or build a faceted set of maps with a single dataframe grouped by year. No way to test either of these ides without data and code. – IRTFM Nov 05 '21 at 00:16
  • @IRTFM, I probably know your idea, does it mean it would need more complicated work to do it? The goal of renumbering and coloring is just to make the figure clearer, if I do not renumber, it does not affect the meaning. So, if the method you mentioned is far more complicated than the cluster analysis itself, I would not do it. Thank you! – Chauncey Tong Nov 05 '21 at 00:27

0 Answers0