make_text {animint2}R Documentation

Convenvience function for a showSelected plot label.

Description

Convenvience function for a showSelected plot label.

Usage

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


[Package animint2 version 2020.9.18 Index]