plot_gene | R Documentation |
Plots genes, with points ordered by expression of gene value.
If you'd like to use the gene name instead, use plot_gene_str
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
)
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) |
a ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.