make_bandscale: Make a bandscale

Description Usage Arguments Value Examples

View source: R/graphical-elements.R

Description

Make a bandscale

Usage

1
make_bandscale(range, n, pad_in = 0, pad_out = 0, reverse = F)

Arguments

range

<num> length of the range of the data

n

<num> number of steps in the range

pad_in

<num> fraction of step size to pad in between bands, defaults to 0.

pad_out

<num> fraction of step size to pad outside of first and last band, defaults to 0.

reverse

<lgl> if the values of the scale should be reversed. Useful for y-down vs . y-up

Value

A list() with elements: range, n, step, bandwidth, pad_in , pad_out, first, values.

Examples

1
2
    make_bandscale(127.76, 12, 0.02, 0.17) # column bands for 96 well plate
    make_bandscale(87.45, 8, 0.02, 0.245) # row bands for 96 well plate

npjc/mtpview1 documentation built on Oct. 29, 2019, 9:41 a.m.