Filter data.
action_filter_data(g, input, asp, operator = ">")
g | An object of class |
---|---|
input | The |
asp | Aspect (column) to filter. |
operator | Operator of the filter, this is combined with
the value from the |
# works in Rmarkdown input_slider( "yFilter", "Filter Y >", value = 50, min = 40, max = 70, step = 5 ) g2(cars, asp(speed, dist)) %>% fig_point() %>% fig_smooth() %>% action_filter_data( "yFilter", dist, operator = ">" )