make.S {Radviz} | R Documentation |
Define Dimensional Anchors around the Unit Circle
Description
make.S will return [x,y] coordinates for n dimensional anchors equally spaced around the unit circle
Usage
make.S(x)
Arguments
x |
a vector of dimensional anchors, or a list of dimensional anchors for Class Discrimination Layout, or the number of anchors to put on the circle |
Details
If x is a vector or a list, values will be used to set the row names of the matrix.
Value
A matrix with 2 columns (x and y coordinates of dimensional anchors) and 1 line
per dimensional anchor (so called springs). If x is a vector, the row names of
the matrix will be set to the syntactically correct version of values in the vector
(through a call to make.names
). Please note that some functions
expect to match column names of data to row names of the spring matrix.
Author(s)
Yann Abraham
Examples
data(iris)
das <- c('Sepal.Length','Sepal.Width','Petal.Length','Petal.Width')
make.S(length(das)) # without row names
make.S(das) # with row names
make.S(list(c('Sepal.Length','Sepal.Width'),c('Petal.Length','Petal.Width')))
[Package Radviz version 0.9.3 Index]