Examine the distribution of monetary scores for the different combinations of frequency and recency scores.

rfm_bar_chart(rfm_table, bar_color = "blue", xaxis_title = "Monetary Score",
  sec_xaxis_title = "Frequency Score", yaxis_title = " ",
  sec_yaxis_title = "Recency Score")

Arguments

rfm_table

An object of class rfm_table.

bar_color

Color of the bars.

xaxis_title

X axis title.

sec_xaxis_title

Secondary x axis title.

yaxis_title

Y axis title.

sec_yaxis_title

Secondary y axis title.

Value

Bar chart.

Examples

# using transaction data analysis_date <- lubridate::as_date('2006-12-31', tz = 'UTC') rfm_order <- rfm_table_order(rfm_data_orders, customer_id, order_date, revenue, analysis_date) # bar chart rfm_bar_chart(rfm_order)
# using customer data analysis_date <- lubridate::as_date('2007-01-01', tz = 'UTC') rfm_customer <- rfm_table_customer(rfm_data_customer, customer_id, number_of_orders, recency_days, revenue, analysis_date) # bar chart rfm_bar_chart(rfm_customer)