RDRToolbox (version 1.18.0)

SwissRoll: 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

Examples

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

Run the code above in your browser using DataCamp Workspace