xAxisScaler: Scale x axis correctly

Description Usage Arguments Details Value

View source: R/coverage_plots.R

Description

Works for all coverage plots, that need 0 position aligning

Usage

1
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.


ORFik documentation built on March 27, 2021, 6 p.m.