I've successfully been running breakout
function using breakoutDetection
package in r. One of the possible products of this function is the $plot. Is that possible to combine multiple plots that are embedded in a list after running breakout
? I've tried the par( )
function with no success. Any ideas before i reproduce the time series with ggplot?
Reproducible example:
require(BreakoutDetection)
df.date = c("01-01-2017", "02-01-2017", "03-01-2017", "04-01-2017", "05-01-2017", "06-01-2017", "07-01-2017", "08-01-2017", "09-01-2017", "10-01-2017")
df.values = c(1,2,1,1,3,22,34,45,22, 10)
ts = data.frame(df.date, df.values)
ts.b = breakout(ts$df.values, min.size=3, method='multi', beta=.008, degree=1, plot=TRUE, xlab = "time")
ts.b$plot
I want to be able to combined the ts.b$plot
element together with other plots (based on other data) in a a 2*2 matrix or other 3*1 matrix... in addition i want to rename the x-axis to show dates and not integers (at the size of the time series)