I'm graphing growth curve data using ggplot with the x axis representing time, the y axis representing optical density/bacteria and each individual line representing a different well in a plate (variable).
ggplot(pmkmd, aes(x = Time, y = OD, color = variable))+
geom_line()
This code works when I want to graph every well together. However, I'd like to also create graphs displaying only certain wells. Each well is labeled in the format of letter-number, as in A7-A12 through H7-H12. I want to graph the B, D, F and H rows only.
I'm sort of a novice in R, so I'm not exactly sure where to start. One thing I remember learning was grepl/grep, which I think would work in this function if I knew how to implement it, but nothing I've tried works.