Hi Troels,
thank you for the nice code and data.
It appears that your data has these steps as you mentioned. Reordering
the data based on pH changes that slightly, but not much. geom_path
obscures this. Based on what i think you want to do, you need to use
geom_line.
library(ggplot2)
ALL <- dget("all.dat")
## PP <- ggplot(ALL[order(ALL$pH),]) +
PP <- ggplot(ALL) +
geom_line(aes(x = SID, y = pH, colour = Albcol, linetype = Pclass)) +
facet_wrap(~PCO2class, ncol=3)
PP
I think you will have to change the data so that geom_line works, if I
understand you correctly.
Best
Brian