/PhraseNet

This is a phrase net implemented as a Shiny application. A phrase net is a visualization tool that represents a text input as a graph.

Primary LanguageRMIT LicenseMIT

PhraseNet

This is a phrase net implemented as a Shiny application. A phrase net is a visualization tool that represents a text input as a graph. The size of the text represents word frequency, connections between words are displayed as arrows where their directionality and width communicate the flow and strength of connected words. The user can select a custom connection word to be used between the words. The graph is created using the visNetwork infrastructure and reactive values in Shiny. The shiny application has interactive features such as highlight, select, zoom, integrated physics and movement of nodes. On click will highlight the connected nodes.

For example see accompanying Dracula.txt file initially downloaded via Project Gutenberg: https://www.gutenberg.org/ebooks/345

See an example below using the Dracula.txt and connector with "love". The graph displays the 51 most frequently connected words.

This is an image

Run the app

Run the following command:

shiny::runGitHub("PhraseNet", "TheodorEmanuelsson")

or clone the repository.

Dependencies

The application depends on R packages shiny, shinydashboard, tidyr, tibble, tidytext, visNetwork.