plot_gene_str: plot_gene_str

View source: R/plotting.R

plot_gene_strR Documentation

plot_gene_str

Description

Plots genes, with points ordered by expression of gene value

Usage

plot_gene_str(
  gene_str,
  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_str

gene name, as string

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.