Learn R Programming

Spectrum (version 1.1)

kernel_pca: kernel_pca: A kernel pca function

Description

kernel_pca: A kernel pca function

Usage

kernel_pca(datam, labels = FALSE, axistextsize = 18,
  legendtextsize = 18, dotsize = 3, similarity = TRUE)

Arguments

datam

Dataframe or matrix: a data frame with samples as columns, rows as features, or a kernel matrix

labels

Factor: to label the plot with colours

axistextsize

Numerical value: axis text size

legendtextsize

Numerical value: legend text size

dotsize

Numerical value: dot size

similarity

Logical flag: whether the input is a similarity matrix or not

Value

A kernel PCA plot

Examples

Run this code
# NOT RUN {
ex_kernel_pca <- kernel_pca(blobs[,1:50], similarity=FALSE)
# }

Run the code above in your browser using DataLab