getTickCoords {gff3Plotter} | R Documentation |
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.
getTickCoords(range)
range |
Coordinate range as a numeric vector of two values: minimum - range[[1]] and maximum - range[[2]] |
A numeric vector with tick coordinates.
Oleg Sklyar, email:osklyar@ebi.ac.uk, based on code from W.Huber
ticks = getTickCoords(c(150, 10000)) print(ticks)