Multiple time series with ts_plot


I am currently trying to plot the time series for two different dataframes of tweets.
ts_plot works perfectly when I use them separately but I wondered if there is a way of combining both lines in the same graph?

Thanks a lot in advance!

You can use patchwork to combine the plots:

plot1 + plot2

But the closest might be to use df12 <- rbind(ts_data(data.frame.1), ts_data(data.frame.2)) and then ts_plot(df12) but it won’t color or distinguish the data.frames. To do so you’d need to plot it yourself using df12.