Learn R Programming

Radviz (version 0.9.5)

anchor.filter: Filtering out anchors with low contributions to the projection

Description

Filtering out anchors with low contributions to the projection

Usage

anchor.filter(x, lim = 0)

Value

a radviz object as produced by do.radviz

Arguments

x

a radviz object as produced by do.radviz

lim

the minimum length of an anchor

Author

Yann Abraham

Details

When anchor.filter is a number and type is not Radviz, any springs whose length is lower than this number will be filtered out of the visualization. This has no effect on the projection itself.

Examples

Run this code
data(iris)
das <- c('Sepal.Length','Sepal.Width','Petal.Length','Petal.Width')
S <- make.S(das)
rv <- do.radviz(iris,S)
plot(rv,anchors.only=FALSE)
new.S <- do.optimFreeviz(x = iris[,das], classes = iris$Species)
new.rv <- do.radviz(iris,new.S)
plot(new.rv,anchors.only=FALSE)
plot(anchor.filter(new.rv,0.2))

Run the code above in your browser using DataLab