Here is my dataframe. It's not very long - only six rows.
df <- structure(list(Send_Month = c("2021-05", "2021-06", "2021-07",
"2021-05", "2021-06", "2021-07"), Order_Result = c("No", "No",
"No", "Yes", "Yes", "Yes"), Email_Send = c(135, 495, 475, 7,
28, 25), Unique_Email_Opens = c(45, 149, 143, 7, 28, 25), Unique_Email_Clicks = c(6,
21, 10, 7, 28, 25), Total_Orders = c(37, 106, 46, 7, 28, 25)), row.names = c(NA,
-6L), groups = structure(list(Send_Month = c("2021-05", "2021-06",
"2021-07"), .rows = structure(list(c(1L, 4L), c(2L, 5L), c(3L,
6L)), ptype = integer(0), class = c("vctrs_list_of", "vctrs_vctr",
"list"))), row.names = c(NA, -3L), class = c("tbl_df", "tbl",
"data.frame"), .drop = TRUE), class = c("grouped_df", "tbl_df",
"tbl", "data.frame"))
I'm having trouble picturing how I'm going to get summary results that I can graph into a bar chart. I'm trying to make some groupings here:
When the month is the same (for example, "2021-05") and I look at the Email_Send variable, I can see that 7 out of 142 (which is 135+7) emails that were sent led to an order. I can also see that 7 out of 52 (which is 45+7) emails that were opened led to an order. And 7 out of 13 (which is 6+7) emails that were clicked on led to an order. That is for the "2021-05" group.
How can I create these statistics for each grouping so I can see how the percentage would change for each group, where the denominator keeps shifting?
I tried using the janitor package for a second and just to orient myself I first filtered to only include that 2021-05 group:
df_may <- df %>%
filter(Send_Month == "2021-05")
df_may %>%
adorn_totals("row")
But I don't know if this method is very flexible for looking at all the groups together and also I don't know if I really want a summary row or a new column. So I don't know if I'm heading in the right direction here.

