plot_tsne: Title

Description Usage Arguments Value Examples

View source: R/viz.R

Description

Title

Usage

1
2
3
plot_tsne(m, p = 30, t = 0.5, d = 2, clusters = NULL,
  color_clusters = F, which_clusters = "column",
  check_duplicates = F, point_size = 0.25, path = NULL, ...)

Arguments

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

...

Value

Returns a ggplot

Examples

 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)

joelgsponer/waRRior2 documentation built on Feb. 22, 2020, 3:34 a.m.