Nothing
```{css, echo=FALSE}
width: 20%; padding: 20px 1px 5px 1px; }
```r ## Global options library(rfm) library(dplyr) library(magrittr) library(DT) knitr::opts_chunk$set(echo = FALSE, width = 75)
data <- params$data data %>% use_series(rfm) %>% select(customer_id, recency_days, transaction_count, amount, rfm_score) %>% datatable()
rfm_plot_heatmap(data, interactive = params$interactive)
rfm_plot_bar_chart(data)
rfm_plot_order_dist(data, interactive = params$interactive)
rfm_plot_histogram(data, interactive = params$interactive)
rfm_plot_histogram(data, "frequency", interactive = params$interactive)
rfm_plot_histogram(data, "monetary", interactive = params$interactive)
segments <- params$segments segments %>% select(customer_id, segment, rfm_score, transaction_count, recency_days, amount) %>% datatable()
segment_overview <- rfm_segment_summary(segments) segment_overview %>% datatable()
rfm_plot_segment_summary(segment_overview, interactive = params$interactive)
rfm_plot_segment(segment_overview, interactive = params$interactive)
rfm_plot_revenue_dist(segment_overview, interactive = params$interactive)
rfm_plot_median_recency(segments, interactive = params$interactive)
rfm_plot_median_frequency(segments, interactive = params$interactive)
rfm_plot_median_monetary(segments, interactive = params$interactive)
rfm_plot_segment_scatter(segments, "monetary", "recency", interactive = params$interactive)
rfm_plot_segment_scatter(segments, "frequency", "recency", interactive = params$interactive)
rfm_plot_segment_scatter(segments, "monetary", "frequency", interactive = params$interactive)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.