Skip to contents

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

Usage

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

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.

Value

a geom_bar layer.

Author

Toby Dylan Hocking