S4BreaksMajor: Major breaks for Vectors

Description Usage Arguments Details Value Examples

Description

Produces major breaks for use on plot axes.

Usage

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, ...)

Arguments

x

A object describing the range of values

n

A desired number of breaks

...

Arguments passed to downstream functions

Details

The downstream function that arguments are typically passed to is the extended function, except when ranges are given as GenomicRanges.

Value

A vector with major breaks positions

Examples

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")))

teunbrand/ggnomics documentation built on Aug. 2, 2020, 7:34 p.m.