Learn R Programming

rfm (version 0.2.0)

rfm_rm_plot: RFM Scatter plot

Description

Examine the relationship between recency, frequency and monetary values.

Usage

rfm_rm_plot(rfm_table, point_color = "blue", xaxis_title = "Monetary",
  yaxis_title = "Recency", plot_title = "Recency vs Monetary")

rfm_fm_plot(rfm_table, point_color = "blue", xaxis_title = "Monetary", yaxis_title = "Frequency", plot_title = "Frequency vs Monetary")

rfm_rf_plot(rfm_table, point_color = "blue", xaxis_title = "Frequency", yaxis_title = "Recency", plot_title = "Recency vs Frequency")

Arguments

rfm_table

An object of class rfm_table.

point_color

Color of the scatter points.

xaxis_title

X axis title.

yaxis_title

Y axis title.

plot_title

Title of the plot.

Value

Scatter plot.

Examples

Run this code
# NOT RUN {
# rfm table
analysis_date <- lubridate::as_date('2006-12-31', tz = 'UTC')
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)

# }

Run the code above in your browser using DataLab