Learn R Programming

genoPlotR (version 0.8.11)

range.dna_seg: Range calculation

Description

Calculate the range of dna_seg and comparisons.

Usage

# S3 method for dna_seg
range(x, ...)
# S3 method for comparison
range(x, overall=TRUE, ...)
# S3 method for annotation
range(x, ...)

Arguments

x

Object to calculate the range from.

overall

Logical, TRUE by default. Should the range be calculated over the whole object? If FALSE, a range is calculated on each side of the comparison.

Unused.

Value

A numeric of length 2. For comparison, if overall is FALSE, a data frame with two rows and two columns, xlim1 and xlim2.

Details

Calculate the overall range of a dna_seg, comparison or an annotation object.

See Also

dna_seg, comparison, trim for further examples.

Examples

Run this code
# NOT RUN {
## Load data
data(three_genes)

## On dna_seg
dna_segs[[1]]
range(dna_segs[[1]])

## On comparison
comparisons[[2]]
range(comparisons[[2]])
range(comparisons[[2]], overall=FALSE)
# }

Run the code above in your browser using DataLab