Hello! I was wondering if it was at all possible to display two separate jitter plots in the same plot with each one having their own statsmooth lines? I'm including two jitter plots because they represent two related but separate response variables across time. With the code that I've been using I've put in the argument for stat_smooth() but do not get lines in the plot itself, and there are no error messages. Also the two end labels of my y axis labels are not visible. What am I missing?
#jitter of Sequence Exploration & Use combined
library(ggplot2)
library(lmerTest)
combined <- ggplot() +
geom_jitter(data = bxint, mapping = aes(x = seq, y = expl), color = 'darkblue') +
stat_smooth(method = "glm", method.args = list(family = "binomial"),
fill = 'gray', color = 'blue') +
geom_jitter(data = bxint, mapping = aes(x = seq, y = use), color = 'darkred') +
stat_smooth(method = "glm", method.args = list(family = "binomial"),
fill = 'gray', color = 'blue') +
xlab(label = "Sequence Number") +
ylab(label = "Box Interaction") +
scale_y_continuous(labels = c("No Interaction", "0.25", "0.50", "0.75", "Interaction")) +
theme_minimal()
combined