Skip to content

Commit

Permalink
add some man on collapse
Browse files Browse the repository at this point in the history
  • Loading branch information
bthieurmel committed Jun 26, 2017
1 parent e3731de commit cbef604
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
22 changes: 22 additions & 0 deletions R/visOptions.R
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,28 @@
#' outline:none;'))
#'
#' ##########################
#' # collapse
#' ##########################
#'
#' nodes <- data.frame(id = 1:15, label = paste("Label", 1:15),
#' group = sample(LETTERS[1:3], 15, replace = TRUE))
#'
#' edges <- data.frame(from = trunc(runif(15)*(15-1))+1,
#' to = trunc(runif(15)*(15-1))+1)
#'
#' # keeping all parent node attributes
#' visNetwork(nodes, edges) %>% visEdges(arrows = "to") %>%
#' visOptions(collapse = TRUE)
#'
#' # setting some properties
#' visNetwork(nodes, edges) %>% visEdges(arrows = "to") %>%
#' visOptions(collapse = list(enabled = TRUE, clusterOptions = list(shape = "square")))
#'
#' # enable / disable open cluster (proxy only) :
#' # visEvents(type = "off", doubleClick = "networkOpenCluster")
#' # visEvents(type = "on", doubleClick = "networkOpenCluster")
#'
#' ##########################
#' # selectedBy
#' ##########################
#' nodes <- data.frame(id = 1:15, label = paste("Label", 1:15),
Expand Down
22 changes: 22 additions & 0 deletions man/visOptions.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cbef604

Please sign in to comment.