Learn R Programming

Radviz (version 0.9.3)

subset.radviz: Subsetting a Radviz projection

Description

Subsetting a Radviz projection

Usage

# S3 method for radviz
subset(x, i = TRUE, ...)

Arguments

x

a radviz object

i

A logical vector or expression evaluated on the Radviz object

...

further arguments to be passed to or from other methods (not implemented)

Value

a new Radviz object containing only rows specified in i

Examples

Run this code
# NOT RUN {
data(iris)
das <- c('Sepal.Length','Sepal.Width','Petal.Length','Petal.Width')
S <- make.S(das)
rv <- do.radviz(iris,S)
# subset rv
srv <- subset(rv,iris$Species=='setosa')
summary(srv)
sum(iris$Species=='setosa') # 50 objects in srv corresponding to setosa values

# }

Run the code above in your browser using DataLab