make_widerect: Make a clickSelects geom_widerect that completely tiles the y...

View source: R/z_geoms.R

make_widerectR Documentation

Make a clickSelects geom_widerect that completely tiles the y range. This makes it easy to construct widerects for the common case of selecting a particular y value.

Description

Make a clickSelects geom_widerect that completely tiles the y range. This makes it easy to construct widerects for the common case of selecting a particular y value.

Usage

make_widerect(data, y.name, even = FALSE, alpha = 0.5, ...)

Arguments

data

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

y.name

variable to be used for y, clickSelects.

even

Logical parameter, should widerects be of even width?

alpha

transparency of a selected widerect, default 1/2.

...

passed to geom_widerect.

Value

a geom_widerect layer.

Author(s)

Toby Dylan Hocking


animint2 documentation built on Nov. 22, 2023, 1:07 a.m.