I'm trying to edit the facet label's text produced by emmean's arrow plot using ggplot2's syntax to override the default.
pigs.lm <- lm(log(conc) ~ source + as.factor(percent),
data = pigs)
pigs.plot <- plot(emmeans(pigs.lm , specs = "percent", by="source"), comparison = T)
protein_names <- list('source: fish'="Source: Fish",
'source: soy'="Source: Soybean",
'source: skim'="Source: Skim milk")
I got an error at this step. How do I fix it?
pigs.plot + facet_wrap(~ source, labeller = protein_names)
Error in cbind(labels = list(), list(`{`, if (!is.null(.rows) || !is.null(.cols)) { : number of rows of matrices must match (see arg 2)
I tried facet_grid, too, but no luck.

