getLogBoxsize {rpnf} | R Documentation |
This function returns an appropriate boxsize if you want to do your point and figure analysis with an logarithmic scale.
getLogBoxsize(percent)
percent |
a numeric value defining the percent |
a numeric value which is equivalent to the percental change given on a logarithmic scale
# apply it with pnfprocessor
library(rpnf) # Load rpnf library
data(DOW) # Load some example data
# return appropriate value for 1% boxsize
getLogBoxsize(percent=1)
pnfprocessor(
high=DOW$High,
low=DOW$Low,
date=DOW$Date,
boxsize=getLogBoxsize(percent=1),
log=TRUE)