Suppose I have two vectors, say
vec1 <- c(1,2,1,3)
vec2 <- c(3,3,2,4)
I want to plot both vectors in series, in different colors, on GGPlot. For example, to plot a single vector in series, I could simply do:
qplot(seq_along(vec1),vec1))
But I want to plot both in series, so we can pairwise compare the entries visually. The graph would look something like:
Thanks!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…