hist_axis_translate | R Documentation |
This function translate the histgram sequence with a certain axis into another histgram sequence with a different axis.
hist_axis_translate(src.hist, src.breakseq, trg.breakseq)
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. |
Target histgram sequence of float values.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.