Skip to contents

Add text labels

Usage

add_text_labels(
  plot,
  var,
  data = all_rows(),
  fontsize = 7,
  segment.size = 0.2,
  box.padding = 0.2,
  ...
)

Arguments

plot

A tidyplot generated with the function tidyplot().

var

bla

data

The data to be displayed in this layer. There are three options:

  • If all_rows() (the default) the complete plot data is displayed.

  • A function to subset the plot data. See filter_rows() and friends.

  • A data.frame to override the plot data.

fontsize

common

segment.size

bla

box.padding

Amount of padding around bounding box, as unit or number. Defaults to 0.25. (Default unit is lines, but other units can be specified by passing unit(x, "units")).

...

Arguments passed on to the geom function.

Value

A tidyplot object