ボケ味のあるクラスター風デンドログラムを作りたいです。私はこのボケドットプロットの例が好きですが、線を曲線にして、次のようなクラスター構造を表示したい: http://bl.ocks.org/mbostock/4063570
ボケの例のドットプロットのコードは次のとおりです。
import numpy as np
from bokeh.plotting import *
from bokeh.objects import Range1d
N = 4000
factors = ["a", "b", "c", "d", "e", "f", "g", "h"]
x0 = [0,0,0,0,0,0,0,0]
x = [50, 40, 65, 10, 25, 37, 80, 60]
output_file("categorical.html", title="categorical.py example")
hold()
segment(x0, factors, x, factors, y_range=factors, x_range=Range1d(start=0, end=100),
line_width=2, line_color="green", tools="resize,previewsave", title="Dot Plot")
circle(x, factors, size=15, fill_color="orange", line_color="green", line_width=3, Name="categorical example")
figure()
show() # open a browser
線を曲線にし、樹状図のようにクラスタリング関係を表示する方法に関する提案。この図は、ドット付きの直線のアイデアを示すためだけに表示されています。実際の目標は、単一のポイントから来るすべてのラインのクラスター関係を示すことです。