Description Usage Arguments Details Examples
View source: R/plot_tsne_gene.R
This will plot gene information onto a 2d tsne plot
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | plot_tsne_gene(
input,
gene,
log_scale = F,
title = "",
density = FALSE,
facet_by = "NA",
colors_points = c("gray", "blue", "red", "yellow"),
size = 1.5,
ncol = 2,
resolution = 250,
theme = "classic",
cutoff = 0.2,
xcol = "x",
ycol = "y",
text_sizes = c(20, 10, 5, 10, 5, 5),
density_scale = 1,
background_sample = F
)
|
input |
The input data |
gene |
the gene or gene to ploy |
log_scale |
if true will log2(value) |
title |
The title |
density |
If true will color a density of the points |
facet_by |
If ONE gene is being plotted it can be faceted. You cannot facet multiple gene |
colors_points |
Colors for the cells |
size |
The size of the points |
ncol |
controls the number of columns if faceting |
resolution |
Control the density drawing resolution. Higher values will increase file size |
cutoff |
removes points from density below this threshold. Lower values will increase file size |
xcol |
pData column to use for x axis |
ycol |
pData column to use for y axis |
Utilize information stored in pData to control the plot display.
1 | plot_tsne_gene(ex_sc_example, gene = "Tnf", title = "Tnf over Time", facet_by = "Timepoint", density = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.