SwissRoll {RDRToolbox}R Documentation

The Swiss Roll dataset

Description

Computes and plots the Swiss Roll dataset of a given size and height. It uses the library "rgl" for rotatable 3D scatterplots.

Usage

SwissRoll(N = 2000, Height = 30, Plot=FALSE)

Arguments

N

number of samples

Height

controls the spreading of the samples in the second dimension

Plot

a boolean specifying whether to plot the Swiss Roll dataset or not

Value

'SwissRoll' returns all N samples as a Nx3-matrix

Author(s)

Christoph Bartenhagen

Examples

## compute and plot a Swiss Roll dataset with 1.000 samples
data=SwissRoll(N = 1000, Plot=TRUE)

[Package RDRToolbox version 1.30.0 Index]