Wolfram言語

新しい可視化領域

都市を距離でグループ化する

アメリカの25大都市を,2都市間の地理的距離に基づいて階層的にクラスタリングする.

In[1]:=
Click for copyable input
cities = EntityList[ EntityClass[ "City", {"Country" -> Entity["Country", "UnitedStates"], "Population" -> TakeLargest[25]}]]
Out[1]=
In[2]:=
Click for copyable input
Dendrogram[cities, Left, ImageSize -> 300]
Out[2]=

関連する例

de en es fr ko pt-br ru zh