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.


JokingHero/ORFik documentation built on Dec. 21, 2024, 12:01 a.m.