make_text: Convenvience function for a showSelected plot label.

View source: R/z_geoms.R

make_textR 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


animint2 documentation built on Sept. 16, 2022, 1:06 a.m.

Related to make_text in animint2...