Dear all,
please could I have some (introductory) information about the CIRCULAR DISPLAY in GGBIO is setup; especially function on 1) seqlength and 2) radius;
the following 2 examples give very different displays; thanks !
<> example 1 :
gr <- GRanges("chr21", strand="+", IRanges(start = c(1, 100), end = c(10, 200)), score = c(10,20))
seqlengths(gr) <- c("chr21"=100000)
ggplot() + layout_circle(gr, geom = "bar", radius = 100, trackWidth = 4, aes(fill = factor(score), y = score))
<> example 2 :
gr <- GRanges("chr21", strand="+", IRanges(start = c(1, 100), end = c(10, 200)), score = c(10,20))
seqlengths(gr) <- max(end(gr))-min(start(gr))
ggplot() + layout_circle(gr, geom = "bar", radius = 100, trackWidth = 4, aes(fill = factor(score), y = score))