Produces minor breaks for use on plot axes.
S4BreaksMinor(b, limits, n = 2) # S4 method for numeric,ANY S4BreaksMinor(b, limits, n = 2) # S4 method for ANY,GRanges S4BreaksMinor(b, limits, n = 5)
b | The current major breaks |
---|---|
limits | An object representing the limits of the breaks |
n | The desired number of breaks |
A vector with minor breaks positions
#> [1] -1 0 1 2 3 4 5 6 7require(GenomicRanges) S4BreaksMinor(GRanges(), GRanges(c("chr1:100-200", "chr2:140-260", "chr3:311-403")), n = 5)#> <WoodenHorse: UnstitchedGPos[13]> #> [1] chr1:100 chr1:150 chr1:200 chr1:250 chr1:300 chr2:100 chr2:150 chr2:200 #> [9] chr2:250 chr2:300 chr3:300 chr3:350 chr3:400