build_horizon_df_2 {ggHoriPlot} | R Documentation |
Compute group for stat_horizon
Description
Compute group for stat_horizon
Usage
build_horizon_df_2(data, origin, horizonscale, rm.outliers, reverse, mirror)
Arguments
data |
A data frame.
|
origin |
Origin of the horizon plot. It can either be a string, namely
"midpoint" (the default), "median" ,
"mean" , "min" or "quantiles" , or a user-specified number.
|
horizonscale |
Cutpoints of the horizon plot. It can either be an integer
specifying the number of ranges (default is 6 ),
or a user-supplied numeric vector with the cutpoints defining the different ranges.
|
rm.outliers |
If TRUE , all the values below quantile(y, 0.25)-1.5*IQR(y)
and above quantile(y, 0.75)+1.5*IQR(y) are excluded from the origin and cutpoint
calculations (default is FALSE ). @param reverse If TRUE , the horizon peaks
for the values below the origin are reversed (default is FALSE ).
|
reverse |
IF TRUE , the horizon peaks for all the values below the origin
are reversed (default is FALSE ).
|
mirror |
If TRUE , the horizon peaks for all the values are reversed
(default is FALSE ).
|
Value
A data frame transformed for a horizon plot.
[Package
ggHoriPlot version 1.0.1
Index]