tsne_perp: tSNE plots with different perplexities

View source: R/ch_functions.R

tsne_perpR Documentation

tSNE plots with different perplexities

Description

tSNE plots with different perplexities and designs.

Usage

tsne_perp(
  z,
  perp = c(2, 5, 10, 50),
  sqrt = TRUE,
  iterations = 1000,
  groups,
  names,
  legend = T,
  legendname = NULL,
  main = NULL,
  filename = "t-SNE_perplexities.pdf",
  height = 16,
  useDingbats = F
)

Arguments

z

the data as a data.frame

perp

a vector of values to test as perplexities, eg. c(2,5,10,50).

sqrt

logical, should sqrt(Nsamples) be added to perplexities? Potentially the lowest needed perplexity.

iterations

number of iterations per tSNE

groups

grouping for colors and lines

names

text to display as point labels

legend

TRUE or FALSE

legendname

Title of legend

main

Title of page

filename

String with filename and desired path, end with .pdf

height

height for pdf, see pdf().

useDingbats

Logical. Default is FALSE, compared to in default pdf().


cekehe/rappp documentation built on May 17, 2022, 8:54 a.m.