equivalences | R Documentation |
The function computes the set of poset elements sharing the same upset and downset.
equivalences(x)
x |
an object of class |
The function computes a vector assigning an equivalence class to each profile. The vector is of class factor
.
Arcagni A.
Lmbd <- getlambda(A > B, A > C, B > D, A > E, B > E, C > F, C > G)
res <- equivalences(Lmbd)
equivalence_classes <- levels(res)
colrs <- sapply(res, function(x) which(equivalence_classes == x)) + 1
plot(Lmbd, col = colrs, lwd = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.