I'm trying to plot multiple times series on a single graph with GGPLOT. The data set is a Data Frame with the dates in date format on the first column, named Time , and the times series on the other columns, named V1, V2...etc..
I tried:
gg1=ggplot() +
geom_line(data=PCA2, aes(x=Time, y=V2, group=1), lwd=1.1, color="red") +
geom_line(data=PCA2, aes(x=Time, y=V3, group=1), lwd=1.1, color="blue")+
scale_color_discrete(name = "PCA series", labels = c("V2", "V3"))
print(gg1)
but I just get this (without the legend):
Can anyone help? it should work and it does not give back any error message...
Thanks!