I was trying to implement multicolor texts as shown here:
multicolor text on chart
which referenced this:
multicolor text in R
This is what I
A possible strategy wrapping the words in a dummy table,
library(gridExtra)
library(grid)
library(ggplot2)
title = c('Concentration of ','affluence',' and ','poverty',' nationwide')
colors = c('black', '#EEB422','black', '#238E68','black')
grid.arrange(ggplot(),
top = tableGrob(t(title),
theme=ttheme_minimal(padding=unit(c(0,2),'mm'),
base_colour = colors)))
enter image description here