make_text: Convenvience function for a showSelected plot label.

Description Usage Arguments Value Author(s)

View source: R/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


tdhock/animint documentation built on July 27, 2019, 5:57 a.m.