Description Usage Arguments Details Examples
View source: R/plot_tsne_metadata.R
This will plot information onto a 2d tsne plot
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
input |
the input ex_sc. |
title |
The title |
color_by |
What to color points by, either "UMI_sum", or pData categorial variable, ignored if gene is provided |
facet_by |
What to break the plots by |
ncol |
How many columns if faceting |
size |
The size of the points |
alpha |
The transparency of the points |
colors |
What colors to utilize for categorial data. Be sure it is of the proper length! |
legend_dot_size |
Size of dot in legend |
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_metadata(ex_sc_example, color_by = "UMI_sum", title = "UMI_sum across clusters", facet_by = "Cluster", ncol = 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.