Description Usage Arguments Value Examples
Visualize the distribution of customers across orders.
1 2 3 4 5 6 7 8 9 | rfm_order_dist(
rfm_table,
bar_color = "blue",
xaxis_title = "Orders",
yaxis_title = "Customers",
plot_title = "Customers by Orders",
plot_title_justify = 0.5,
print_plot = TRUE
)
|
rfm_table |
An object of class |
bar_color |
Color of the bars. |
xaxis_title |
X axis title. |
yaxis_title |
Y axis title. |
plot_title |
Title of the plot. |
plot_title_justify |
Horizontal justification of the plot title; 0 for left justified and 1 for right justified. |
print_plot |
logical; if |
Bar chart.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # using transaction data
analysis_date <- lubridate::as_date('2006-12-31')
rfm_order <- rfm_table_order(rfm_data_orders, customer_id, order_date,
revenue, analysis_date)
# order distribution
rfm_order_dist(rfm_order)
# using customer data
analysis_date <- lubridate::as_date('2007-01-01')
rfm_customer <- rfm_table_customer(rfm_data_customer, customer_id,
number_of_orders, recency_days, revenue, analysis_date)
# order distribution
rfm_order_dist(rfm_customer)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.