Position_site_plot: Draw a rectangle to reflect the specific site of each family.

View source: R/plot.R

Position_site_plotR Documentation

Draw a rectangle to reflect the specific site of each family.

Description

Draw a rectangle to reflect the specific site of each family.

Usage

Position_site_plot(
  dat,
  site = "gene",
  cluster = "cluster",
  seurat,
  site_color,
  legend = T,
  plot_margin = margin(5, 5, 50, 5)
)

Arguments

dat

Data frame. Specific site data.

site

Character. Site column in dat. Default:"gene".

cluster

Character. Cluster column in dat. Default:"cluster".

seurat

Seurat object.

site_color

Character. Color of each group.

legend

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

plot_margin

margin around entire plot (unit with the sizes of the top, right, bottom, and left margins).Default:margin(5,5,50,5)

Value

A ggplot of a rectangle to reflect the specific site of each family.


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