Shiny: visNetwork


The series is intended to assist students and researchers (with some experience in R) migrate their important work and results from the desktop (R and RStudio) to the web. Shiny is a package that transforms static R scripts into interactive web applications. It binds variables in the R environment to a set of on-screen, user adjustable input objects (selection lists, numerical sliders, radio buttons, etc.) that become parameter values for querying data, fitting models, and controlling presentation of results. Since it runs in an R context, Shiny coordinates calls to virtually any R package, making important analytical methods such as regression, decision trees, geographical mapping, network analysis, and text analysis available to the web application. On-screen controls can be configured as inputs to important presentation packages such as DT (data tables), ggplot2, plotly, and visNetwork. Finally, a server version of Shiny (shinyServer) is available that migrates, with little to no modification, locally developed Shiny applications to a public facing web application. Viewers can analyze supplied data and review results using the methods and models implemented by the developer, with no knowledge of R required. visNetwork is an R package for network visualization, using vis.js javascript library (


View Enrollment Sessions
  • Big Data

About Course


  • Construct vertices and edge data sets from associations in data
  • Compose data objects necessary to a visNetwork object
  • Adjust (by centrality, edge density, etc.), vertex and edge filtering, color, position, and gravitational properties
  • Convert vertex dimension to edge and edge to vertex


  • Understand the primary function of Shiny – to transform a static R script into a dynamic web application
  • Develop skills necessary to create and deploy a professional R and Shiny web application to make data and research results available to the public
  • Incorporate Shiny into the explore, research, and publish cycle


- Laptop (Windows, Mac) with current version of R - R packages: Shiny, DT, ggplot, plotly, ggraph, visNetwork, RMySQL, DBI - Data sets will be queried from a SQL database on a VM located on Duke’s network - CSV files can be made available for participants for which queries fail (ftp from VM or github, resource location to be provided in session) - Example R and Shiny scripts (github, resource to be provided in session)


  • Basic understanding of R (RStudio, variable types, data frames, object assignment, interpretation of function output)
  • An idea or problem from current research where R can be used to process and analyze data with Shiny presenting results in an intuitive and informative way

We also advise you attend the following before this class: Shiny: Dive into GGplot


shiny-visnetwork shiny-visnetwork shiny-visnetwork


Interested in taking this class? Enroll in one of the sessions below!


1:00 PM - 4:00 PM

Location: Online

27 seats left!


This class is part of our Research Computing Track

See the whole track

Suggested Courses

Course Graphic

Shiny: Publication Quality Graphs with plotly

In this workshop, we will make interactive, publication quality graphs with plotly. We will take a ggplot app and make it even more dynamic by adding hover labels, clickable geoms to enable filtering, and highlighting and modifying a graph as a user probes visible features and relationships in the data.

Learn More
Course Graphic

Shiny Server

Learn how to implement the Shiny Server to take your work in the shiny framework to a production environment. This course requires knowledge of the R programming language.

Learn More