Description Usage Arguments See Also Examples
Prune nodes based on given percentage
1 | prune_nodes(p, percentage = 0.2, rank = c("amount", "in_degree", "out_degree"))
|
p |
process map object created by |
percentage |
how many percentage of the nodes should be pruned. |
rank |
how to rank the nodes.
|
prune_edges
1 2 3 4 5 6 7 | library(dplyr)
p <- generate_eventlog() %>% create_pmap(target_categories = c("target"))
DiagrammeR::count_nodes(p)
# [1] 10
p <- prune_nodes(p, percentage = 0.5)
DiagrammeR::count_nodes(p)
# [1] 5
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.