I am having some issues when trying to group lines into a single plot.
My data has the following structure:
I would like to plot the data grouping by 'run', but when I run the following code, I get wrong results:
ggplot(data, aes(x = epoch, y = accuracy, col = model)) +
geom_line(aes(lty = run)) +
geom_smooth(se = FALSE)
However, if I change 'group' to 'lty', I get the 'right' results.
Can anyone point out what I am doing wrong?