group_list: A factor with duplicated character or factor
perplexity: numeric; perplexity parameter for Rtsne
color: color vector
color.label: color legend label
addEllipses: logical,add ellipses or not
Returns
a ggplot object
Examples
exp <- matrix(rnorm(10000),nrow =50)colnames(exp)<- paste0("sample",1:200)rownames(exp)<- paste0("gene",1:50)exp[1:4,1:4]exp[,1:100]= exp[,1:100]+10group_list <- factor(rep(c("A","B"),each =100))if(requireNamespace("Rtsne",quietly =TRUE)){draw_tsne(exp,group_list)}else{ warning("Package 'Rtsne' needed for this function to work.
Please install it by install.packages('Rtsne')")}