Description Usage Arguments Value Examples
View source: R/fct_album_plot.R
album_plot is a function that will take inputs for the data and axis values and return a joy plot from the package 'ggjoy'.
1 | album_plot(artist_data, ridge_variable, factor_variable)
|
artist_data |
Data that is retrieved from spotifyr::get_artist_audio_features(). Each row of the data is a specific song. This plot will only utilize the numeric columns of the dataset. |
ridge_variable |
Numeric variable from the artist_data that will be turned into the joy ridges for the joy plot. |
factor_variable |
Factor variable from the artist_data that will determine the grouping for the joy ridges on the y-axis. |
Returns a formatted ggjoy plot.
1 | album_plot(spotifyr::get_artist_audio_features('Adele'),'Valence','album_name')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.