Open bennydeslandes opened 6 months ago
I tried to adapt a code from a previous question (https://github.com/jokergoo/circlize/issues/361) but it just turned out weird - the error bars are inside the points
circos.initialize(letters[1:6], xlim = c(0, 10))
circos.track(ylim = c(0, 1.2), panel.fun = function(x, y) {
value = runif(10)
mid = 1:10 - 0.5
circos.points(mid, value, pch = 16, col = "blue", cex = 2)
error = value * 0.2
circos.segments(mid, value - error, mid, value + error, col = "red")
circos.segments(mid - 0.15, value - error, mid + 0.15, value - error, col = "red")
circos.segments(mid - 0.15, value + error, mid + 0.15, value + error, col = "red")
})
circos.clear()
Never mind! I think I've found how to fix it (change the point size)
circos.initialize(letters[1:6], xlim = c(0, 10))
circos.track(ylim = c(0, 1.2), panel.fun = function(x, y) {
value = runif(10)
mid = 1:10 - 0.5
circos.points(mid, value, pch = 16, col = "black", cex = 0.5)
error = value * 0.2
circos.segments(mid, value - error, mid, value + error, col = "black")
circos.segments(mid - 0.15, value - error, mid + 0.15, value - error, col = "black")
circos.segments(mid - 0.15, value + error, mid + 0.15, value + error, col = "black")
})
circos.clear()
Thanks for the great package 😄
Thanks for the great package!
I was wondering if it would be possible to plot points with error bars?
I'm trying to create a circos plot that divided into 6 sections (per each gene). For the first track I wanted to plot points with error bars/confidence intervals? This is an example of the structure of my dataset:
Thank you in advance