Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 894 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 894 Bytes

Musigram

Creating a network diagram with the refrain of your favorite songs

By Juan Manuel Perafan

This function receives two arguments, the title of a song and the artist. Behind the scenes, this function uses the genius API. Therefore, it is imperative that the song and the artist match identically with the name it is written by genius.

Based on lyrics of the song, the function will extract the refrain (sometimes known as hook or chorus) and visualize the parts that repeat themselves the most in a network diagram.

How to use this function? musigram(artist = "Daddy Yankee", song = "Gasolina")

Dependacies:

  • Tidyverse
  • Genius
  • Ggraph
  • Igraph