I am generating a figure that will be used as a column of labels to the right of a three-panel figure, and I would like the title of the figure to right-align as do the labels in the figure itself.
here is a minimal example in which I would like to right-align the title 'words'.
ggplot() +
geom_text(aes(y = 1, x = seq(4),
label = c('fee', 'fi', 'fo', 'fum'),
hjust = 1)) +
opts(title = 'words') +
coord_flip() +
scale_y_continuous(breaks = c(0,0), limits = c(0,1))
Which produces this:

update
The answer by @joran is helpful, but it does not align the words with the labels. changing his code from hjust=1 to hjust = 0.96 gets close, but this is more of a hack than a satisfying answer.