View source: R/identify_usage_segments.R
plot_ts_us | R Documentation |
Returns a vertical stacked bar plot that displays the proportion of the Usage Segments over time. This visualization helps to understand the distribution of user segments across different time periods. While a main use case is for Copilot metrics, this function can be applied to other metrics, such as 'Chats_sent'.
plot_ts_us(data, cus, caption)
data |
A data frame with a column containing the Usage Segments,
denoted by |
cus |
A string representing the name of the column containing the usage segment classifications (e.g., "UsageSegments_12w"). |
caption |
A string representing the caption for the plot. This is typically used to provide additional context or information about the visualization. |
A ggplot object representing the stacked bar plot of usage segments.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.