smooth_switch: Switch between global and local smoothing

Description Usage Arguments

View source: R/smoothing.R

Description

We use a lot of smoothing in our reactive graphs, and tend to offer both global (entire dashboard) and local (tab-specific) smoothing options. smooth_switch is a simple function to abstract away the logic behind determining whether the global or local option should be relied on.

Usage

1

Arguments

global

the input variable for global smoothing.

local

the input variable for local smoothing.


wikimedia/wikimedia-discovery-polloi documentation built on Dec. 4, 2019, 2:12 p.m.