# NOT RUN {
## to suppresse log messages to the console
migrbc::initialize_logger(log_level = 1)
plot_test <- function(mig_hist) {
plot_mig_hist(date_crossing = as.character(mig_hist$date_crossing),
is_arrival = mig_hist$is_arrival,
days_to_next_crossing = mig_hist$days_to_next_crossing,
show_date = FALSE,
cex = 0.8)
}
number_of_people = 1
person_data <- migrbc::setup_random_test_data(number_of_people,
initial_date = '2001-01-01',
numJourneys = 3,
min = 0,
max = 100)
cross_spaces <- migrbc::pre_process(person_data, n_groups = 1)
## run in non-parallel
post_data <- migrbc::run_rbc(cross_spaces,
window_size = 487,
threshold_year = 365,
parallel=FALSE)
old_par <- par(mfrow = c(1, 1))
plot_test(post_data$journeys)
par(old_par)
# }
Run the code above in your browser using DataLab