album_plot: album_plot

Description Usage Arguments Value Examples

View source: R/fct_album_plot.R

Description

album_plot is a function that will take inputs for the data and axis values and return a joy plot from the package 'ggjoy'.

Usage

1
album_plot(artist_data, ridge_variable, factor_variable)

Arguments

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.

Value

Returns a formatted ggjoy plot.

Examples

1
album_plot(spotifyr::get_artist_audio_features('Adele'),'Valence','album_name')

gtdoering/harmony documentation built on Dec. 20, 2021, 1:47 p.m.