top_hilo: Indicate top high, low of numeric vector

Description Usage Arguments Value

View source: R/analyst-helper.R

Description

Return vector of 1,-1,0 indicate top high, low of input vector 1 for top high, -1 for top low, 0 for the others This function work on conjunction with geom_col(), to show for example top n high and lowest point of some value

Usage

1
top_hilo(x, n = 10)

Arguments

x

input vector

n

number of top value each size

Value

numeric vecotr of 0, -1, and 1


vohai611/haitools documentation built on Dec. 23, 2021, 4:10 p.m.