getTickCoords {gff3Plotter}R Documentation

Retrieves Coordinates of Best Formatted Tick Positions for Axis Labeling

Description

Given a range of minumum (range[[1]]) and maximum (range[[2]]) values the function suggests the best positions for axis ticks and labels aligning those to 1, 2, 5, 10 fold values. Specifically designed for large non-negative values, eg. range = c(100, 12500) etc. This function is not designed for values < 10 or negative.

Usage

getTickCoords(range)

Arguments

range Coordinate range as a numeric vector of two values: minimum - range[[1]] and maximum - range[[2]]

Value

A numeric vector with tick coordinates.

Author(s)

Oleg Sklyar, email:osklyar@ebi.ac.uk, based on code from W.Huber

See Also

plot.gff, plot.gff.toFile

Examples

   ticks = getTickCoords(c(150, 10000))
   print(ticks)

[Package gff3Plotter version 1.6.0 Index]