S4BreaksMinor: Minor breaks for Vectors

Description Usage Arguments Value Examples

Description

Produces minor breaks for use on plot axes.

Usage

1
2
3
4
5
6
7
S4BreaksMinor(b, limits, n = 2)

## S4 method for signature 'numeric,ANY'
S4BreaksMinor(b, limits, n = 2)

## S4 method for signature 'ANY,GRanges'
S4BreaksMinor(b, limits, n = 5)

Arguments

b

The current major breaks

limits

An object representing the limits of the breaks

n

The desired number of breaks

Value

A vector with minor breaks positions

Examples

1
2
3
4
5
6
S4BreaksMinor(c(1,3,5), c(0, 6), 2)

require(GenomicRanges)
S4BreaksMinor(GRanges(),
              GRanges(c("chr1:100-200", "chr2:140-260", "chr3:311-403")),
              n = 5)

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