Open mhoban opened 4 months ago
I initially tried to put circos.labels
inside of panel.fun
(like I did with circos.text
), but I got the error:
"Error: panel_fun
should not change the current track index. Please check the functions used inside panel_fun
."
I'd like to use the overlap-avoidance of
circos.labels
to label sectors on a achordDiagram
. I've got it to where I can plot the labels, but I can't get them to plot on the outside of the chord diagram. They always seem to stay inside. I tried allocating new tracks and that didn't seem to really work. Is there a way to do this?As a second question, the way I'm currently calculating x values for the
circos.labels
call feels a little hacky. Is there a better way?Here's my current code:
As you can see, the labels all show up inside the chord diagram. How can I place them on the outside? (note: I'm only using
circos.labels
for the top sectors, the bottom ones are labeled normally usingcircos.text
)