text_3D_repel: 3D version of 'geom_text_repel'

Description Usage Arguments Value

Description

Same usage as geom_text_repel by adding it after a ggplot object

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
text_3D_repel(
  dat,
  AP,
  theta,
  phi,
  label_col,
  axes_names = c("x", "y", "z"),
  repel_force = 1,
  color_text = F,
  magnify_text = 1,
  fontface = "bold",
  seg_color = "NA",
  ...
)

Arguments

dat

labelling data frame

AP

aesthetic parameters, only need to supply point_fontsize

theta

angle of azimuthal rotation

phi

angle of vertical rotation

axes_names

the column names for the x, y, and z coordinates in dat

repel_force

extent of repelling labels

color_text

whether to color the label text according to label_col

magnify_text

how much bigger to make the label text

Value

a geom_text_repel layer


Yutong441/TBdev documentation built on Dec. 18, 2021, 8:22 p.m.