I have generated the following summary of means and SDs for two parameters, SAR and ER, for several multi-column categories:
structure(list(category = c("DIT GROUP\nCR 16.0005\nADB", "DIT GROUP\nCR 16.0005\nUMB",
"LATE TIMED GROUP\nCR 16.0005\nUMB", "LATE TIMED GROUP\nR -NF (16)\nUMB",
"LATE TIMED GROUP\nCR 16.0013\nUMB"), SAR_m = c(0.0124685047055857,
0.0116929321704855, 0.0107502700349996, 0.00237895138055938,
0.00231425848742098), SAR_sd = c(0.00556156907619075, 0.00515705033822913,
0.00485214336952352, 0.00121107790805573, 0.00140776861061631
), ER_m = c(0.413555948857483, 0.318170537834018, 0.271963089630801,
0.389281391815171, 0.368785595691807), ER_sd = c(0.115277368081429,
0.109433733193877, 0.112935566690964, 0.181796976516952, 0.126749040405446
)), class = c("tbl_df", "tbl", "data.frame"), row.names = c(NA,
-5L))
I have been able to produce a bar graph with error bars in Excel, but I'm having trouble moving this step to R. I have not found a way to use ggplot2 to create the categories needed from the first 3 columns.
Ideally, I would even like to facet the SAR and ER data, with the previously mentioned categories on the horizontal, and the SAR and ER labels on the facets, but I realize that would require pivoting long once I get past the issue of combining columns to categories. Thanks.



unite()from{tidyr}:unite(data, category, c(Rel_Subgroup, Release_Site, MarkTag), sep = "\n"). This should give you a single column with values from the 3 columns each in a new line when plotted. If you need more than just collapsing the 3 columns (e.g. you don't want to repeat "DIT GROUP" in the first 2 labels) you can take a look at nested faceting in{ggh4x}.