make_bar {animint2}R Documentation

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)

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(s)

Toby Dylan Hocking


[Package animint2 version 2024.1.24 Index]