posneg {ggHoriPlot} | R Documentation |
This function calculates the different positive and negative boundaries for each data point based on the origin and the cutpoint vector provided.
posneg(y, origin, vec)
y |
Numeric vector of values to be transformed. |
origin |
Numeric origin of the horizon plot. |
vec |
Numeric vector of cutpoints. |
A data frame, which has been transformed with the supplied origin and vector of cuts.