#simulate zoo time series
x <- zoo_simulate(cols = 2)
if(interactive()){
zoo_plot(x)
}
#free
x_free <- zoo_permute(
x = x,
permutation = "free",
repetitions = 2
)
if(interactive()){
tsl_plot(
tsl = x_free,
guide = FALSE
)
}
#free by row
x_free_by_row <- zoo_permute(
x = x,
permutation = "free_by_row",
repetitions = 2
)
if(interactive()){
tsl_plot(
tsl = x_free_by_row,
guide = FALSE
)
}
#restricted
x_restricted <- zoo_permute(
x = x,
permutation = "restricted",
repetitions = 2
)
if(interactive()){
tsl_plot(
tsl = x_restricted,
guide = FALSE
)
}
#restricted by row
x_restricted_by_row <- zoo_permute(
x = x,
permutation = "restricted_by_row",
repetitions = 2
)
if(interactive()){
tsl_plot(
tsl = x_restricted_by_row,
guide = FALSE
)
}
Run the code above in your browser using DataLab