SwissRoll {RDRToolbox} | R Documentation |
Computes and plots the Swiss Roll dataset of a given size and height. It uses the library "rgl" for rotatable 3D scatterplots.
SwissRoll(N = 2000, Height = 30, Plot=FALSE)
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 |
'SwissRoll' returns all N samples as a Nx3-matrix
Christoph Bartenhagen
## compute and plot a Swiss Roll dataset with 1.000 samples data=SwissRoll(N = 1000, Plot=TRUE)