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",
print_plot = TRUE
)
An object of class rfm_table
.
Color of the bars.
X axis title.
Secondary x axis title.
Y axis title.
Secondary y axis title.
logical; if TRUE
, prints the plot else returns a plot object.
Bar chart.
# using transaction data
analysis_date <- as.Date('2006-12-31')
rfm_order <- rfm_table_order(rfm_data_orders, customer_id, order_date,
revenue, analysis_date)
# bar chart
rfm_bar_chart(rfm_order)