I would like to have more fine-grained control of the fonts in a ggplot title. In a very simple example:
<code>x <- c(0,1,2,3)
y <- c(0,1,4,9)
z <- data.frame(x,y)
ggplot(z,aes(x=x,y=y)) + geom_line()+ ggtitle("HELLO WORLD")
</code>
<code>x <- c(0,1,2,3)
y <- c(0,1,4,9)
z <- data.frame(x,y)
ggplot(z,aes(x=x,y=y)) + geom_line()+ ggtitle("HELLO WORLD")
</code>
x <- c(0,1,2,3)
y <- c(0,1,4,9)
z <- data.frame(x,y)
ggplot(z,aes(x=x,y=y)) + geom_line()+ ggtitle("HELLO WORLD")
the title is obviously “HELLO WORLD”. I would like to change “WORLD” to a different font size than that of “HELLO” (and also a different color).
The key thing is that this needs to remain as just a single title line.
Thanks!