jokergoo / circlize

Circular visualization in R
http://jokergoo.github.io/circlize_book/book/
Other
959 stars 141 forks source link

`circos.genomicLabels` doesn't work for customized reference #380

Open PanZiwei opened 9 months ago

PanZiwei commented 9 months ago

Hi Zuguang, Thanks for the amazing tool. I am trying to use circos.genomicLabels to plot specific genes outside of a customized reference, but it doesn't function properly and plot labels inside the circle even though I set up side = "outside"

Would really appreciate it if you could provide any help. Thanks!

test <- data.frame(chr = 'custome', start = 0, end = 90000)
circos.clear()
circos.par("start.degree" = 90)
circos.genomicInitialize(test, sector.names = NA)
bed<-data.frame(c("custome", "custome"), 
                c(100, 500), 
                c(1000, 2000), 
                c("TEST1",'TEST2'))
circos.genomicLabels(bed, labels.column = 4, side = "outside")

test