dim_red_3D: Produce 3D scatter plot using gg3D

Description Usage Arguments Author(s)

Description

Produce 3D scatter plot using gg3D

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
dim_red_3D(
  plot_data,
  x,
  y,
  z,
  color_by,
  all_theta = 0,
  all_phi = 0,
  show_axes = F,
  show_arrow = T,
  show_label = T,
  label_col = NULL,
  num_col = NULL,
  axis_length = 0.2,
  lab_just = 0.05,
  vert_just = 0,
  hor_just = 0,
  further_repel = F,
  repel_force = 1,
  fontface = "bold",
  size_highlight = NULL,
  highlight_ratio = 1.5,
  seg_color = NA,
  dim_name = "GPLVM",
  dim_vjust = 1,
  AP = NULL
)

Arguments

plot_data

a dataframe with all the plotting information

x

the column containing x coordinates, similarly for y and z

all_theta

the degree of azimuthal (horizontal) rotation

all_phi

the degree of vertical rotation

show_axes

whehther to show 3D axes

show_arrow

whether to show 3D segments (arrows)

show_label

whether to show text labels

label_col

which column contains the label information

num_col

number of columns for facet_wrap

axis_length

the proportion that the arrow axis occupies on the entire axis

lab_just

adjust the labels of the arrow axes radially. You may supply one value for all 3 axes, all 3 values for x, y and z axes respectively

vert_just

adjust the labels of the arrow axes vertically

further_repel

if TRUE, the labels would be repelled away from the data points as much as possible

size_highlight

a character, logical or numeric vector specifying which cells to magnify in size

highlight_ratio

how much larger the highlighted cells should be

AP

aesthetic parameters controlling arrow appearance

force_repel

extent of repulsion

Author(s)

Yutong Chen


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