Description Usage Arguments Value Examples
Title
1 2 3 |
m |
matrix |
p |
perplexity |
t |
theta |
d |
dimensions |
clusters |
A tibble or data frame with ID and Cluster |
color_clusters |
Should the clusters be colored |
which_clusters |
Column of row (for waRRior_heatmap) |
path |
Provide a path to save the plot |
... |
Returns a ggplot
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # Without clusters
a <- runif(100)
b <- runif(100)
c <- runif(100)
m <- as.matrix(cbind(a,b,c))
plot_tsne(m)
# With clusters
a <- runif(100)
b <- runif(100)
c <- runif(100)
m <- as.matrix(cbind(a,b,c))
rownames(m) <- seq(1,100)
clusters = data.frame(ID = rownames(m), Cluster = sample(seq(1:4), size = 1000, replace = T))
plot_tsne(m, color_clusters = T, clusters = clusters)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.