Hi.
This is a ggplot that I generated.
I am looking to change the title name for each ggplot to greek letter symbols. I have typed the greek letters I want to replace each title with:
"GlobalConsumption": \Delta c^{G}_{t}
"cdiff": \Delta c^{US}_{t} - \Delta c^{ROW}_{t}
"Dollar": Dollar_{t}
"USWealthShare": \omega^{US}_{t}
"USWealthShareChange": \Delta \omega^{US}_{t}
Any ideas how I might achieve this? These are GGplots generated from the code:
"
#Top Panel
g1a=ggplot(plotdf,aes(x=index,y=value)) +
geom_line() +facet_wrap(~Impulse, scales="free") +
geom_ribbon(aes(ymin=Lower,ymax=Upper), fill = "blue", alpha = 0.3, color = NA) +
geom_point() +
geom_line() +
theme_bw()
#Bottom Panel
g1= ggplot(WS,aes(x=index,y=value)) +
geom_line() +facet_wrap(~Impulse, scales="free") +
geom_ribbon(aes(ymin=Lower,ymax=Upper), fill = "blue", alpha = 0.3, color = NA) +
geom_point() +
geom_line() +
theme_bw()
#Combining
figurea <- ggarrange(g1a,g1,
ncol = 1, nrow = 2)
"