Convenient labelling function to add prepared text labels to an existing cyto_plot.

cyto_plot_labeller(
  label_text = NA,
  label_text_x = NA,
  label_text_y = NA,
  label_text_font = 2,
  label_text_size = 0.8,
  label_text_col = "black",
  label_fill = "white",
  label_fill_alpha = 0.6
)

Arguments

label_text

character string to include in the label.

label_text_x

vector containing the x co-ordinates for the plot labels. Label positions can be interactively selected if no co-ordinates are manually supplied.

label_text_y

vector containing the x co-ordinates for the plot labels. Label positions can be interactively selected if no co-ordinates are manually supplied.

label_text_font

integer [1,2,3,4] passed to text to alter the font, set to 2 by default for a bold font.

label_text_size

numeric character expansion used to control the size of the text in the labels, set to 0.8 by default. See ?text for details.

label_text_col

specify text colour in label for each gate, defaults to "black" for all gates.

label_fill

fill colour to use for labels, set to "white" by default.

label_fill_alpha

numeric [0,1] controls the transparency of the fill colour, set to 0.6 by default.

Author

Dillon Hammill (Dillon.Hammill@anu.edu.au)