make_text: Convenvience function for a showSelected plot label.

Description Usage Arguments Value Author(s)

View source: R/z_geoms.R

Description

Convenvience function for a showSelected plot label.

Usage

1
make_text(data, x, y, label.var, format = NULL)

Arguments

data

data.frame of relevant data

x

x coordinate of label position

y

y coordinate of label position

label.var

variable matching showSelected, used to obtain label value

format

String format for label. Use %d, %f, etc. to insert relevant label.var value.

Value

a geom_text layer.

Author(s)

Toby Dylan Hocking


animint2 documentation built on Jan. 8, 2021, 5:39 p.m.

Related to make_text in animint2...