Learn R Programming

Radviz (version 0.9.5)

get.optim: Get the Result of the Optimization Operation

Description

Once the order of anchors has been optimized using do.optimRadviz this function can be used to recover the optimized anchors or any intermediate step

Usage

get.optim(opt, n = NULL)

Value

a character vector of the anchor names, ordered as in the n^th^ step of the optimization

Arguments

opt

the result of the optimization operation performed by do.optimRadviz

n

the optimized order of anchors to return; defaults to NULL, which returns the best identified combination

Author

Yann Abraham

Examples

Run this code
data(iris)
das <- c('Sepal.Length','Sepal.Width','Petal.Length','Petal.Width')
S <- make.S(das)
sim.mat <- cosine(iris[,das])
in.da(S,sim.mat) # the starting value
new <- do.optimRadviz(S,sim.mat,iter=10,n=100)
get.optim(new) # the optimal order
get.optim(new,2) # the second step of the optimization

Run the code above in your browser using DataLab