Description Usage Arguments Value Author(s) See Also Examples
Vizualize POK structure
1 | viz(po)
|
po |
the dependency matrix of POKS to be vizualized |
a list with two components ks
and comp
,
being the original po
and analyzed connected components of po
respectively, each component of comp
is itself a list with two components
matrix
and level.sizes
, being the corresponding subgraph of
po
and a vector indicates the number of items on each level of depth.
Hoang-Trieu trinh, thtrieu@apcs.vn
1 2 3 4 5 6 7 8 9 10 11 | # Example: Vizualising Partial Order structure
# Declare a context where there are 15 students and 20 items
p <- pars(students = 15, items = 20)
# Add information that the Partial Order Structure should have depth of 3, two connected components and no transitive links
p <- pars(p, min.depth = 3, max.depth = 3, min.ntree = 2, max.ntree = 2, trans = FALSE)
# Generate data to calculate the `po` parameter
poks.data <- gen("poks", p)
# Visualise the Partial Order Structure
v <- viz(poks.data$po)
# Print the analysed structure
print(v)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.