plot_tsne | R Documentation |
Generates a tSNE plot from a gene presence/absence matrix
plot_tsne(pa, category = NULL, plot = TRUE, perplexity = 20, pcadims = 50)
pa |
binary presence/absence matrix |
category |
a factor vector which can be used to colour the points |
plot |
whether to return the plot or just the data.frame used for plotting (default=TRUE) |
perplexity |
the 'perplexity' argument passed to tSNE |
pcadims |
the number of principle components passed from the inital stage used in the main tSNE algorithm |
either a ggplot2 object or a 'data.frame' with the data needed to recreate the plot
sim <- simulate_pan(rate=1e-3)
plot_tsne(sim$pa)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.