#(smoothed) lineplot of median pucks collected over time with and without penalty:
median_pucks_over_time <- ggplot(stats_yes_pen_pucks_collected, aes(x=V1, y=V3, col="with penalty")) +
geom_ribbon(aes(ymin=stats_yes_pen_pucks_collected$V12, ymax=stats_yes_pen_pucks_collected$V13), fill="darkgreen", linetype=2, alpha=0.3, colour=NA) +
geom_smooth(se = FALSE) +
geom_ribbon(aes(ymin=stats_no_pen_pucks_collected$V12, ymax=stats_no_pen_pucks_collected$V13), fill="blue", linetype=2, alpha=0.3, colour=NA) +
geom_smooth(data = stats_no_pen_pucks_collected, se = FALSE, aes(col="without penalty")) +
scale_color_manual("Dataset", values = c("with penalty" = "darkgreen", "without penalty" = "blue")) +
labs(x = "time", y = "median number of pucks collected") +
theme(panel.background = element_rect(fill = 'white', colour = 'grey'), panel.grid.minor = element_line(colour = "grey"))