is.valid: Identify the valid projections from a Radviz object

View source: R/is.valid.R

is.validR Documentation

Identify the valid projections from a Radviz object

Description

The function will return a vector as long as the data in x where points that could not be projected are TRUE

Usage

is.valid(x)

Arguments

x

an object of class Radviz, as returned by do.radviz

Author(s)

Yann Abraham

Examples

data(iris)
das <- c('Sepal.Length','Sepal.Width','Petal.Length','Petal.Width')
iris0 <- rbind(iris,c(rep(0,length(das)),NA))
S <- make.S(das)
rv0 <- do.radviz(iris0,S)

sum(!is.valid(rv0)) # should be 1

# to find which points where invalid in the data
which(!is.valid(rv0))

# to review the original data points
rv1 <- subset(rv0,is.valid(rv0))

summary(rv1)

Radviz documentation built on March 26, 2022, 1:10 a.m.