Learn R Programming

ggHoriPlot (version 1.0.1)

posneg: Internal function

Description

This function calculates the different positive and negative boundaries for each data point based on the origin and the cutpoint vector provided.

Usage

posneg(y, origin, vec)

Value

A data frame, which has been transformed with the supplied origin and vector of cuts.

Arguments

y

Numeric vector of values to be transformed.

origin

Numeric origin of the horizon plot.

vec

Numeric vector of cutpoints.