A paper now in page proofs has been modified by the copy editor to have figure tags (e.g. 'A', 'B', ...) in bold, while the rest of the label is normal. For example "A matches > 30", "B matches > 60". I cannot figure out how to get facet_wrap() labeller to bold only part of the label string. I have not figured out how to get labeller=label_parsed to accept my bold string with >= in it.
As you provided no minimal reproducible example I don't know what's the issue with your code.
But here is a minimal reprex showing how you could achieve your desired result. Note the use of the ~
after bold
dat <- data.frame(
x = 1,
y = 1,
facet = c("bold(A)~matches > 30", "bold(B)~matches >= 60")
)
library(ggplot2)
ggplot(dat, aes(x, y)) +
geom_point() +
facet_wrap(~facet, labeller = label_parsed)