Learn R Programming

dimRed (version 0.2.6)

dataSets: Example Data Sets for dimensionality reduction

Description

A compilation of standard data sets that are often being used to showcase dimensionality reduction techniques.

Usage

loadDataSet(name = dataSetList(), n = 2000, sigma = 0.05)

dataSetList()

Value

loadDataSet an object of class

dimRedData. dataSetList() return a character string with the implemented data sets

Arguments

name

A character vector that specifies the name of the data set.

n

In generated data sets the number of points to be generated, else ignored.

sigma

In generated data sets the standard deviation of the noise added, else ignored.

Details

The argument name should be one of dataSetList(). Partial matching is possible, see match.arg. Generated data sets contain the internal coordinates of the manifold in the meta slot. Call dataSetList() to see what data sets are available.

Examples

Run this code
## a list of available data sets:
dataSetList()

## Load a data set:
swissRoll <- loadDataSet("Swiss Roll")
# \donttest{
if(requireNamespace("scatterplot3d", quietly = TRUE))
  plot(swissRoll, type = "3vars")
# }

## Load Iris data set, partial matching:
loadDataSet("I")

Run the code above in your browser using DataLab