geneEmbedPlot | R Documentation |
Scatter plot for genes with two-dimenstional embeddings in a SummarizedExperiment
object. Each point stands for a gene.
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.
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.