Hi,
>Here is my code:
And how about some data? A reproducible example? You aren't just using
ggplot, are you? Not with geom_text_repel in there.
You could make it much easier for people to help you.
Maybe whatever is in mytheme is causing the problem. Maybe it is that in
you last geom_rect xmax is less than xmin and ymax less than ymin. Hard to
tell without some data and a reproducible example to play with.
And if you look at your image closely, more than one facet differs.
I refer you to the link below.
>ggplot(subset(table4, era == "2000s"),aes(TE,AE)) +
> geom_smooth(method='lm',formula=y~x,
>se=FALSE,colour="black")+geom_point(size=1)+geom_text_repel(aes(label=Coun
>try))+facet_wrap(~Rname, ncol=2)+ coord_cartesian(ylim=c(0,1))+mytheme +
>geom_rect(aes(xmax=1, xmin=0.85, ymax=0.85, ymin=0), alpha=0.01,
>fill="orange")+
> geom_rect(aes(xmax=1, xmin=0, ymax=1, ymin=0.85),
>fill="orange",alpha=0.01)+
> geom_rect(aes(xmax=1, xmin=0.85, ymax=1, ymin=0.85),
>fill="green",alpha=0.01)+geom_rect(aes(xmax=0, xmin=0.85, ymax=0,
>ymin=0.85), fill="red",alpha=0.01)
>Please provide a reproducible example:
>
https://github.com/hadley/devtools/wiki/Reproducibility