#' The application server-side
#'
#' @param input,output,session Internal parameters for {shiny}.
#' DO NOT REMOVE.
#' @import shiny
#' @noRd
app_server <- function(input, output, session) {
output$network <- renderVisNetwork({
visNetwork(sociograma::nodes, sociograma::edges) %>%
visIgraphLayout() %>%
visOptions(selectedBy = "group",
highlightNearest = TRUE,
nodesIdSelection = TRUE) %>%
visPhysics(stabilization = FALSE)
})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.