Description Usage Arguments Value Examples
Examine the relationship between recency, frequency and monetary values.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | rfm_rm_plot(
rfm_table,
point_color = "blue",
xaxis_title = "Monetary",
yaxis_title = "Recency",
plot_title = "Recency vs Monetary",
print_plot = TRUE
)
rfm_fm_plot(
rfm_table,
point_color = "blue",
xaxis_title = "Monetary",
yaxis_title = "Frequency",
plot_title = "Frequency vs Monetary",
print_plot = TRUE
)
rfm_rf_plot(
rfm_table,
point_color = "blue",
xaxis_title = "Frequency",
yaxis_title = "Recency",
plot_title = "Recency vs Frequency",
print_plot = TRUE
)
|
rfm_table |
An object of class |
point_color |
Color of the scatter points. |
xaxis_title |
X axis title. |
yaxis_title |
Y axis title. |
plot_title |
Title of the plot. |
print_plot |
logical; if |
Scatter plot.
1 2 3 4 5 6 7 8 9 10 11 12 13 | # rfm table
analysis_date <- lubridate::as_date('2006-12-31')
rfm_result <- rfm_table_order(rfm_data_orders, customer_id, order_date,
revenue, analysis_date)
# monetary value vs recency
rfm_rm_plot(rfm_result)
# frequency vs monetary value
rfm_fm_plot(rfm_result)
# frequency vs recency
rfm_rf_plot(rfm_result)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.