I have a time series like this which consists of past 4 months (Feb, Mar, Apr, May) data:
"timestamp" "rain_intensity"
"1" "2012-06-15 01:05:00 UTC" 2.6
"2" "2012-06-15 01:00:00 UTC" 9.6
"3" "2012-06-15 00:55:00 UTC" 18.5
"4" "2012-06-15 00:50:00 UTC" 25.7
"5" "2012-06-15 00:45:00 UTC" 32.8
"6" "2012-06-15 00:40:00 UTC" 38.7
And I have a similar kind of one more time series, but which consists of past 2 months (Apr, May) data. I have to plot them on the same plot one above the x axis(4months data) and one below (2months data) the x axis. 2nd plot.
Using mfrow
in par
was unsuccessful since the x axes are not same.
How can I go for it?
add = TRUE
for the 2 months. You could also use ggplot2 and use faceting. – Roman Luštrik