SwissRoll: The Swiss Roll dataset

Description Usage Arguments Value Author(s) Examples

View source: R/SwissRoll.R

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)

Example output

Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: 'rgl_init' failed, running with rgl.useNULL = TRUE 
3: .onUnload failed in unloadNamespace() for 'rgl', details:
  call: fun(...)
  error: object 'rgl_quit' not found 

RDRToolbox documentation built on Nov. 8, 2020, 11:10 p.m.