Skip to contents

Show only the rows in selection, hiding the rest (a display-tier hide, not a re-aggregation). Point a second view's filter_by() at a selection whose gesture lives in a first view and you get cross-filtering: brush one panel, a linked panel redraws to just those rows.

Usage

filter_by(plot, selection)

Arguments

plot

A PlotSpec.

selection

A SelectionSpec, or a selection name string.

Value

The PlotSpec, with the filter registered.