Skip to contents

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

Toby Dylan Hocking