How does one add a second axis label to facetted plots?
I realize in most cases they should be the same, but I have a top row with skill metrics for different models while the bottom row is the difference in skill so I'd like to include bquote(Delta*.(costlong))
below the existing axis label, and to the left of the 2nd row of facets.
I've tried
`labs(y=bquote(Delta*.(costlong)*" "*.(costlong)*" "))+`
but its impossible to center well and it moves when exporting.
I've also played with
+annotation_custom(textGrob('bquote(Delta*.(costlong))),xmin=-20,xmax=-10,ymin=0,ymax=.2)
but it doesn't show up. I am limiting my x axis from 0 to 160.
here is some data and plotting code:
costlong=bquote(r^2)
skill.m=data.frame(doy=seq(1,160),yr=2000:2001,variable=factor(c('skill_phvfull','skill_phvrcnfull','fulldiff'),levels=c('skill_phvfull','skill_phvrcnfull','fulldiff')),value=runif(2*3*160,0,.6))
skill.m$set=ifelse(grepl('skill',as.character(skill.m$variable)),'data','diff')
skill.m$set=as.factor(skill.m$set)
skill.m[grepl('diff',as.character(skill.m$variable)),'value']=skill.m[grepl('diff',as.character(skill.m$variable)),'value']/3
ggplot(skill.m)+
geom_point(aes(x=as.numeric(doy),y=value,colour=variable),alpha=.75,size=1)+
facet_grid(set~yr,scale='free',space='free')+
labs(y=costlong)+
scale_colour_brewer(name='',palette='Set1',labels=c('PHV (blended)','PHV+RCN (blended)','Blended Skill Difference'))+
scale_x_continuous('day of year',limits=c(1,160),labels=c(1,seq(30,160,30)),breaks=c(1,seq(30,160,30)))+
scale_y_continuous(breaks=seq(0,.7,.1),labels=seq(0,.7,.1))+
guides(colour=guide_legend(override.aes=list(alpha=1,size=2)))+
theme_bw()+
theme(axis.line=element_line(colour='grey10'),
strip.background=element_rect(fill='white',colour='white'),
strip.text=element_text(face='bold',size='12'),
axis.text.x=element_text(size=8,angle=90,hjust=1,vjust=.5),
axis.text.y=element_text(size=8,angle=0),
legend.key=element_rect(colour='white'),
legend.position = "bottom",
legend.box = "horizontal")
any suggestions?