Learn R Programming

parsec (version 1.1.1)

upset: upset

Description

The function returns a boolean vector indicating which poset elements are above (or equal to) at least an element of subset Q.

Usage

upset(z, ...)
## S3 method for class 'cover':
upset(z, ...)
## S3 method for class 'incidence':
upset(z, Q = NULL, ...)

Arguments

z
a cover or an incidence matrix, of S3 classes cover or incidence, respectively.
Q
vector to select a subset of the profiles in the poset defined through z.
...
any of the above.

Examples

Run this code
z <- getzeta(var2prof(varlen = c(2, 2, 2)))

plot(z, col = 1 + c(1, 1, 0, 0, 1, 0, 0, 0) + c(0, 0, 0, 2, 0, 0, 2, 2), lwd = 2)

Q <- c(4, 7, 8)
rownames(z)[Q]
upset(z, Q)

Q <- c("211", "112", "111")
upset(z, Q)

Run the code above in your browser using DataLab