Is it possible to make guides with different fonts, regarding a factor? I'm trying to plot my multivariate data and, in addition to the colour code, I'd like to make some of the guides bold. Here's a reproducible example
library("ggpubr")
library("reshape2")
iris.melt <- melt(iris)
ggboxplot(data = iris.melt, x = "variable", y= "value", add = "jitter",
add.params = list(color = "Species"), legend = "bottom") +
theme(legend.text = element_text(face = "italic")) +
guides(col = guide_legend(override.aes = list(size=2), label.position = "bottom"))
Which produces
I tried highlighting only one species
ggboxplot(data = iris.melt, x = "variable", y= "value", add = "jitter",
add.params = list(color = "Species"), legend = "bottom") +
theme(legend.text = element_text(face = c("plain","italic","plain")) +
guides(col = guide_legend(override.aes = list(size=2), label.position = "bottom"))
but "Vectorized input to element_text() is not officially supported."
Is there a way to customize individuals items in the legend?

