Learn R Programming

MBMethPred (version 0.1.4.2)

TSNEPlot: t-SNE 3D plot

Description

A function to draw a 3D t-SNE plot for DNA methylation beta values using the K-means clustering technique.

Usage

TSNEPlot(File, NCluster = 4)

Value

Objects of rgl

Arguments

File

The output of ReadMethylFile function.

NCluster

The number of cluster.

Examples

Run this code
# \donttest{
set.seed(123)
data <- Data2[1:100,]
data <- data.frame(t(data))
data <- cbind(rownames(data), data)
colnames(data)[1] <- "ID"
TSNEPlot(File = data, NCluster = 4)
# }

Run the code above in your browser using DataLab