SwissRoll: The Swiss Roll dataset

Description Usage Arguments Value Author(s) Examples

Description

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

Usage

1
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

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

Budheimer/RDRToolbox documentation built on May 30, 2019, 1:26 p.m.