I'd like to plot mean affective responses (-5 to 5 were possible) per time point (0, 1, 2, 3). Time point 0 is the minute 0 , time point 1 is minute 1 to 13, time point 2 is minute 14 to 23 and time point 3 is minute 24 to 33. But on the x-axis I still like to have the time (minute 0 to 35) instead of the time point. I just like to have four points in my plot for each time point. I'm only able to have points for each minute:
ggplot(data= FS2809m, aes(x = minute, y = meanFS)) +
geom_point()+
scale_x_continuous(expand= c(0, 0), limits = c(0, 35), breaks= c
(0, 5, 10, 15, 20, 25, 30, 35), name= "Zeit [min]")+
scale_y_continuous(breaks = c(0, 1, 2, 3, 4, 5), limits= c(0, 5), name = "Feeling Scale Bewertung")+
theme_grey()+
labs(title = "Durchschnittliches affektives Erleben - Jungen",
subtitle = "28.09.2021")+
theme(plot.title = element_text(size = 12, color = "black", hjust = 0, face= "bold"),
plot.subtitle = element_text(size = 10, color = "grey50", hjust = 0))
But I actually only want to have one point at minute 0, one at minute 1, one at minute 14 and one at minute 24. How can I proceed?
Data from picture
df <- data.frame(minute = 0:17,
timepoint = c(0, rep(1, 13), 2, 2, 2, 2),
meanFS = c(3.4, rep(3.8, 13), 4, 4, 4, 4))