thresh_ist: Add threshold

Description Usage Arguments Examples

View source: R/plugins.R

Description

Add threshold

Usage

1
thresh_ist(p, threshold)

Arguments

p

a chartist object.

threshold

threshold, defaults to mean of first series passed with add_ist.

Examples

1
2
3
4
5
6
7
8
9
mtcars %>%
    chart_ist(disp) %>%
    add_ist(hp) %>%
    thresh_ist()

mtcars %>%
    chart_ist(disp) %>%
    add_ist(hp) %>%
    thresh_ist(220)

JohnCoene/chartist documentation built on May 7, 2019, 11:17 a.m.