xAxisScaler: Scale x axis correctly

View source: R/coverage_plots.R

xAxisScalerR Documentation

Scale x axis correctly

Description

Works for all coverage plots, that need 0 position aligning

Usage

xAxisScaler(covPos)

Arguments

covPos

a numeric vector of positions in coverage

Details

It basicly bins the x axis on floor(length of x axis / 20) or 1 if x < 20

Value

a numeric vector from the seq() function, aligned to 0.


Roleren/ORFik documentation built on Nov. 13, 2024, 10 p.m.