How to add different lines for facets
Make sure that the variable species is identical in both datasets. If it a factor in one on them, then it must be a factor in the other too library(ggplot2) dummy1 <- expand.grid(X = factor(c(“A”, “B”)), Y = rnorm(10)) dummy1$D <- rnorm(nrow(dummy1)) dummy2 <- data.frame(X = c(“A”, “B”), Z = c(1, 0)) ggplot(dummy1, aes(x = … Read more