Re: [R] Plotting two time series in one graph

2021-05-02 Thread Rui Barradas
Hello, Can you post sample data? For instance, the output of dput(head(dovrez, 20)) dput(head(rqa_df_USD, 20)) Or maybe you could rbind the data.frames with one column telling which of Res or LAM the values come from. Hope this helps, Rui Barradas Às 19:38 de 02/05/21, Baki UNAL via

[R] Plotting two time series in one graph

2021-05-02 Thread Baki UNAL via R-help
Hi I'm trying to plot two time series in one graph. I tried the following code: p = ggplot() +    geom_line(data = dovrez, aes(x = Date, y = Res), color = "blue") +   geom_line(data = rqa_df_USD, aes(x = DATE, y = LAM), color = "red") +   xlab('Dates') +   ylab('Values') print(p) But I got the