Description Usage Arguments Details Value Examples
Produces major breaks for use on plot axes.
1 2 3 4 5 6 7 | S4BreaksMajor(x, n = 5L, ...)
## S4 method for signature 'numeric'
S4BreaksMajor(x, n = 5L, ...)
## S4 method for signature 'GRanges'
S4BreaksMajor(x, n = 5L, ...)
|
x |
A object describing the range of values |
n |
A desired number of breaks |
... |
Arguments passed to downstream functions |
The downstream function that arguments are typically passed to is
the extended
function, except when ranges
are given as GenomicRanges
.
A vector with major breaks positions
1 2 3 4 5 6 | # For simple numerics
S4BreaksMajor(c(0, 12))
# Gives GPos extremes for GRanges
require(GenomicRanges)
S4BreaksMajor(GRanges(c("chr1:100-200", "chr2:140-260")))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.