I would like to add some curves to a ggplot with facets but I can not figure out how to correctly identify a particular panel with a particular name used for faceting. For instance:
a <- data.frame(Surg=c("Surg1", "Surg2", "Surg3","Surg1", "Surg2", "Surg3"),
Times=c(23,45,12,45,7,12))
plota <- ggplot(a) +
geom_histogram(aes(Times)) +
facet_wrap(~Surg)
I can then use ggplot_build(plota) to get a lot of information but I can't seem to find where the name of a particular panel is found. Any help would be greatly appreciated.