Displaying 1 result from an estimated 1 matches for "ann_text".
Did you mean:
add_text
2013 Jan 24
1
Insert segment only on particular facets in ggplot
...t;,size=3)+annotate("segment",x=366,xend=310,y=1,yend=1,size=0.5,arrow=arrow(length=unit(0.2,"cm")))+annotate("segment",x=366,xend=420,y=1,yend=1,size=0.5,arrow=arrow(length=unit(0.2,"cm")))
### This is what I did to show text annotation on the bottom panel
ann_text <-
data.frame(x=c(340,390),y=c(3,3),id=c("orange"),label=c("2008","2009"))
p1 <- p1 +
geom_text(data=ann_text,aes(x=x,y=y,label=label,size=3),show_guide=F)
p1
Now, I want to add the arrows and segment based on the overall graph.
My data is attached along.
My...