tsne: A tsne function for similarity matrices or ordinary data
tsne(mydata, labels = FALSE, perplex = 15, seed = FALSE, axistextsize = 18, legendtextsize = 18, dotsize = 3, similarity = TRUE)
Data frame or matrix: kernel matrix or data frame with samples as columns, features as rows
Factor: to label the plot with colours
Numerical value: this is the perplexity parameter for tsne, it usually requires adjusting for each dataset
Numerical value: to repeat the results exactly, setting seed is required
Numerical value: axis text size
Numerical value: legend text size
Numerical value: dot size
Logical flag: whether input is similarity matrix or not
A tsne plot object
# NOT RUN { ex_tsne <- tsne(blobs[,1:50],perplex=15,similarity=FALSE) # }
Run the code above in your browser using DataLab