Description Usage Arguments Examples
This function draws Hasse diagram – visualization of transitive reduction of a finite partially ordered set.
1 |
data |
n x n matrix, which represents partial order of n
elements in set. Each cell |
labels |
Vector containing labels of elements. If missing or |
parameters |
List with named elements:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | randomData <- generateRandomData(15, 2, 0.5)
hasse(randomData)
# Clustering example
data <- matrix(data = FALSE, ncol = 4, nrow = 4)
data[1, 2] = data[1, 3] = data[2, 4] = data[3, 4] = TRUE
data[2, 3] = data[3, 2] = TRUE
hasse(data, c(), list(cluster = TRUE))
hasse(data, c(), list(cluster = FALSE))
# Hasse to pdf example
# randomData <- generateRandomData(15, 2, 0.5)
# pdf("path-for-diagram.pdf")
# hasse(randomData, NULL, list(newpage = FALSE))
# dev.off()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.