I\'m trying to make a plot similar to this answer: https://stackoverflow.com/a/4877936/651779
My data frame looks like this:
df2 <- read.table(tex
Add group = samples to the aes of geom_line. This is necessary since you want one line per samples rather than for each data point.
group = samples
aes
geom_line
samples
ggplot(df2, aes(measurements, value)) + geom_line(aes(colour = samples, group = samples))