r circlize report gap.degree is too large -


i'm trying plot chord chorddiagram function in r.circlize package, reference code similar "matrix visualization"

set.seed(999) chorddiagram(mat) circos.clear() 

the error report like:

circos.initialize(factors = factors, xlim = xlim) :   maybe `gap.degree` large there no space allocate sectors. 

and 'mat' looks like:

> 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" ... 

it because matrix has many rows. in case, if rows , columns refer different elements, there 421 + 7 = 428 sectors in plot. default there gaps between every 2 neighbouring sectors width of 1 degree. so, in case sum of gaps 428 degree larger whole circle (360 degrees) , therefore there no space drawing sectors.


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -