This package holds a single function to calculate and visualize a "songsim" similarity matrix where cell (i, j) is filled if word i in a song's lyrics is the same as word j. This method was first suggested by Colin Morris (see links below).
Visualize Beyonce's Formation:
path <- system.file("extdata", "formation.txt", package = "songsim") songsim(path)
songsim(path, colorfulMode = TRUE, mainTitle = "Formation - Beyonce")
interactiveMode if you have the
heatmaply package installed:
songsim(path, interactiveMode = TRUE, singleColor = "blue")
(See live version here)
More information and examples here.
More information from Colin Morris: