rfm_rm_plot: RFM Scatter plot

Description Usage Arguments Value Examples

Description

Examine the relationship between recency, frequency and monetary values.

Usage

 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
)

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.

print_plot

logical; if TRUE, prints the plot else returns a plot object.

Value

Scatter plot.

Examples

 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)

rfm documentation built on July 21, 2020, 5:06 p.m.