plotTsne.RdPlot a TSNE of the data, with assigned colors and labels from provided variables. Note that this function is a modification of code from Pabloc (https://www.r-bloggers.com/author/pabloc/) from https://www.r-bloggers.com/playing-with-dimensions-from-clustering-pca-t-sne-to-carl-sagan/
plotTsne(
datIn,
colorGroup = "none",
labelGroup = "none",
useScaled = FALSE,
capValue = Inf,
perplexity = 10,
theta = 0.5,
main = "TSNE plot",
maxNchar = 1000,
seed = 10
)a fishScaleAndMap output list
a character vector (or factor) indicating how to color the Tsne (e.g., cluster call) or a metadata/mappingResults column name (default=NULL)
a character vector (or factor) indicating how to label the Tsne (e.g., cluster call) or a metadata/mappingResults column name (default=NULL)
plot the scaled (TRUE) or unscaled (FALSE; default) values
values above capValue will be capped at capValue (default is none)
other parameters for Rtsne
title of the plot
what is the maximum number of characters to display in the plot for each entry?
for reproducibility
Only returns if there is an error