Description Usage Arguments Value Examples
Scatter plot for genes with two-dimenstional embeddings in a SummarizedExperiment
object. Each point stands for a gene.
1 | geneEmbedPlot(object, gene.df, group = "center", method = "TSNE")
|
object |
A |
gene.df |
Data.frame. The first column must be a vector of gene names, and has the name |
group |
Character, a column name in |
method |
Character, the embeddings for scatter plot. Must be one of |
A ggplot
object.
1 2 3 4 5 6 7 8 9 10 11 12 | data(zh.data)
zh <- createTomo(zh.data)
peak_genes <- findPeakGene(zh)
zh <- runTSNE(zh, peak_genes$gene)
# Color genes by peak centers.
geneEmbedPlot(zh, peak_genes)
# Color genes by peak starts.
geneEmbedPlot(zh, peak_genes, group="start")
# Do not color genes.
geneEmbedPlot(zh, peak_genes["gene"])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.