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