Re: [R] geom_text only in the first panel with facet_wrap in ggplot2

2018-06-25 Thread Ron Crump
Dear Maria, I am trying to add text only in the first panel of a faceted ggplot The following might help you to achieve what you want. I created a small dummy dataset, but I tried to use your column names in the hope this would help: library(ggplot2) # data.frame DF <- data.frame(Q = rep(1:5,

[R] geom_text only in the first panel with facet_wrap in ggplot2

2018-06-25 Thread Maria Lathouri via R-help
Dear all, I am trying to add text only in the first panel of a faceted ggplot; I have been struggling to find a solution on this online but unfortunately none of what I found is working. Here it is a reproducible example. I hope it helps: library(gamm4) library(ggplot2) example<-read.csv