Customers by ordersSource:
Visualize the distribution of customers across orders.
rfm_plot_order_dist( rfm_table, bar_color = "blue", animate = FALSE, xaxis_title = "Orders", yaxis_title = "Customers", count_size = 3, plot_title = "Customers by Orders", plot_title_justify = 0.5, print_plot = TRUE )
An object of class
Color of the bars.
TRUE, animates the bars. Defaults to
X axis title.
Y axis title.
Size of count displayed on top of the bars.
Title of the plot.
Horizontal justification of the plot title; 0 for left justified and 1 for right justified.
TRUE, prints the plot else returns a plot object.
rfm_order_dist() has been deprecated and will be made defunct. It has
been provided for compatibility with older versions only, and will be made
defunct at the next release.
Instead use the replacement function
# 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) # order distribution rfm_plot_order_dist(rfm_order) # using customer data analysis_date <- 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_plot_order_dist(rfm_customer)