I am working on a repeated measures graph and I cannot seem to get it all working. This is my code
gg.base <- ggplot(consumption.data, aes(x = Trial, y = Consumption))
gg.idline <- gg.base + geom_line(aes(color = Id, group = Id))
gg.idline
and my output gives me this error message
Error in FUN(X[[i]], ...) : object 'Id' not found
I am willing to try a different code all together but my ultimate goal is a graph similar to the attached picture.