Vizualize t-SNE

viz_tsne(data, label)

Arguments

data

A data.frame.

label

variable to color with.

Value

ggplot2 object.

Examples

#> #> Attaching package: ‘dplyr’
#> The following objects are masked from ‘package:stats’: #> #> filter, lag
#> The following objects are masked from ‘package:base’: #> #> intersect, setdiff, setequal, union
viz_tsne(iris, Species)
viz_tsne(select(iris, -Species), Sepal.Length)