plot_gene: plot_gene

View source: R/plotting.R

plot_geneR Documentation

plot_gene

Description

Plots genes, with points ordered by expression of gene value. If you'd like to use the gene name instead, use plot_gene_str

Usage

plot_gene(
  gene,
  genes_df,
  umap_coords,
  join_col_str = "cell",
  UMAP_1 = "UMAP_1",
  UMAP_2 = "UMAP_2",
  stroke_size = 0.1,
  pt_size = 0.5
)

Arguments

gene

gene name, passed in directly

genes_df

data frame with at least two columns, one with gene values and one with obs IDs to join to umap_coords

umap_coords

data frame with at least three columns, two with UMAP coords and one with obs IDs to join to genes_df

UMAP_1

string denoting UMAP_1 (optional; default: UMAP_1)

UMAP_2

string denoting UMAP_2 (optional; default: UMAP_2)

stroke_size

stroke size (optional; default: 0.1)

pt_size

point size (optional; default: 0.5)

Value

a ggplot object


amyh25/Rsc documentation built on Jan. 29, 2024, 7:22 a.m.