我正在尝试使用 R.circlize 包中的 chordDiagram 函数绘制和弦,参考代码类似于“矩阵可视化”
set.seed(999)
chordDiagram(mat)
circos.clear()
错误报告如下:
circos.initialize(factors = factors, xlim = xlim) :
Maybe your `gap.degree` is too large so that there is no space to allocate sectors.
我的“垫子”看起来像:
> str(mat)
num [1:421, 1:7] 2 0 2 0 0 0 0 0 0 0 ...
- attr(*, "dimnames")=List of 2
..$ : chr [1:421] "BCM,SCM_2,Accept_Dismiss" "BCM,TCU_2,ActualGear" "BCM,ACM_1,AirbagPassengerLED" "BCM,ACM_1,AirbagWarningLamp" ...
..$ : chr [1:7] "MMC,RxBuffer" "IC,RxBuffer" "CCU,RxBuffer" "PEPS,RxBuffer" ...