getLogBoxsize {rpnf} | R Documentation |
Determine an appropriate boxsize, if you want to use logarithmic scale.
Description
This function returns an appropriate boxsize if you want to do your point and figure analysis with an logarithmic scale.
Usage
getLogBoxsize(percent)
Arguments
percent |
a numeric value defining the percent |
Value
a numeric value which is equivalent to the percental change given on a logarithmic scale
Examples
# 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)
[Package rpnf version 1.0.5 Index]