I would like to add superscript into strip text of facet_wrap
. First, I used bquote
to assemble texts according to this post:
a <- bquote('2007, pop = 5.6 p' ~ m^-2)
b <- bquote('2007, pop = 2.8 p' ~ m^-2)
c <- bquote('2008, pop = 5.6 p' ~ m^-2)
d <- bquote('2009, pop = 5.6 p' ~ m^-2)
and then change names of levels and facet labels according to this post,
levels(df21$trt)<-c(a,b,c,d)
but the facet labels did not change anything. Any help? Thank you in advance!