multiple_group_scatter: Scatter plot for genes belonging to multiple gene families

View source: R/plot.R

multiple_group_scatterR Documentation

Scatter plot for genes belonging to multiple gene families

Description

Scatter plot for genes belonging to multiple gene families, Genes belonging to multiple families will be given multiple colors

Usage

multiple_group_scatter(
  dat,
  my_color,
  mapping = "umap",
  group = NULL,
  gene = NULL,
  background_color = "grey80",
  text = T,
  text_group = NULL,
  text_face = "bold",
  text_color = "grey60",
  text_size = 5,
  legend = T,
  point_size = 1,
  segment_size = 1,
  multiple_point_size = 0.3
)

Arguments

dat

Seurat/monocle object.

my_color

Gene families colors. Only gene belonging to multiple gene families will be colored.

mapping

Name of reduction to pull gene embedding for. Only for Seurat object.

group

Factor. Grouping information of each gene. Must contain the same length of genes.

gene

Character. Must contain duplicate gene names.

background_color

Colors for gene NOT belonging to multiple gene families.

text

Logical. If TRUE, gene family will be labeled at scatter plot. Default:T.

text_group

Factor. Grouping information of labeled gene family. Must contain the same length of genes.

text_face

Character. fontface of labeled gene family.

text_color

Character. Colors of labeled gene family. Default:"black".

text_size

Numeric. The gene family text size of scatter plot. Default:5.

legend

Logical. If TRUE, add a legend to the picture. Default:TRUE.

point_size

Numeric. The background point size of scatter plot. Default:1.

segment_size

Numeric. The segment size of scatter plot. Only for monocle object. Default:1.

multiple_point_size

Numeric. Point size of gene belonging to multiple gene families. Default:0.3.

Value

Scatter plot for genes belonging to multiple gene families.


Busydog1990/genepro documentation built on July 20, 2023, 6:03 a.m.