Learn R Programming

animint2 (version 2025.1.28)

make_bar: Convenience function for an interactive bar that might otherwise be created using stat_summary(geom="bar").

Description

Convenience function for an interactive bar that might otherwise be created using stat_summary(geom="bar").

Usage

make_bar(data, x.name, alpha = 1)

Value

a geom_bar layer.

Arguments

data

data.frame to analyze for unique x.name values.

x.name

variable to be used for x, clickSelects.

alpha

transparency of selected bar, default 1.

Author

Toby Dylan Hocking