pl_scatterplot: plot x-y scatters

Description Usage Arguments Value

View source: R/pl.R

Description

plot x-y scatters

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
pl_scatterplot(
  meta_data,
  x,
  y,
  group_by = NULL,
  groups = NULL,
  show_points = T,
  shape_by = NULL,
  size_by = NULL,
  show_ellipse = F,
  ellipse_level = 0.5,
  ellipse_alpha = 0.8,
  ellipse_color = "white",
  show_center = F,
  center_method = SummariseExpr,
  center_size = 3,
  center_shape = 1,
  center_alpha = 1,
  colors = scanpy_colors$default_64,
  ...
)

Arguments

meta_data

a data.frame including x, y, group_by

x

colname of meta_data

y

colname of meta_data

group_by

color the points by which vector

groups

subset data to show only those points belonging to groups of group_by

show_points

show geom_point

shape_by

point aes, a value or colname of meta_data

size_by

point aes, a value or colname of meta_data

show_ellipse

show stat_ellipse

ellipse_level

set ellipse area level

ellipse_alpha

ellipse aes, a value of 0 to 1

ellipse_color

ellipse aes, a color

show_center

show mean point

center_method

function used to calc mean center

center_size

center point aes, a value

center_shape

center point aes, a value

center_alpha

center point aes, a value

colors

modify the point colors

...

params passed to center_method

Value

a ggplot object


zzwch/convgene documentation built on July 11, 2021, 9:41 a.m.