hist_axis_translate: Translate axis of histgram sequence into another axis

View source: R/histgram.R

hist_axis_translateR Documentation

Translate axis of histgram sequence into another axis

Description

This function translate the histgram sequence with a certain axis into another histgram sequence with a different axis.

Usage

hist_axis_translate(src.hist, src.breakseq, trg.breakseq)

Arguments

src.hist

Source histgram sequence of float values.

src.breakseq

Source histgram breaks. The length is length(src.hist)+1.

trg.breakseq

Target histgram breaks.

Value

Target histgram sequence of float values.

Examples

x = c(1,2,3)
x.ax = c(0,1,2,3)
y.ax = c(0,0.5,1,1.5,2,2.5)
hist_axis_translate(x,x.ax,y.ax)
# c(0.5,0.5,1,1,1.5)

hmito/hmRLib documentation built on Sept. 8, 2024, 4:49 p.m.