Learn R Programming

SimSurvey (version 0.1.4)

vis_sim: Make a flexdashboard for visualizing the simulation

Description

Assumes the working directory is the project directory

Usage

vis_sim(sim, ...)

Arguments

...

Additional arguments to send to run

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
pop <- sim_abundance(ages = 1:20, years = 1:20)
vis_sim(pop)

dist <- sim_distribution(pop, grid = make_grid(res = c(10, 10)))
vis_sim(dist)

## Run one survey design
survey <- sim_survey(dist, n_sims = 5)
vis_sim(survey)

## Run several survey designs and assess stratified estimates
surveys <- expand_surveys(set_den = c(1, 2) / 1000,
                          lengths_cap = c(100, 500),
                          ages_cap = c(5, 20))
tests <- test_surveys(dist, surveys = surveys, keep_details = 1,
                      n_sims = 10, n_loops = 50, cores = 1)
vis_sim(tests)

# }
# NOT RUN {
# }

Run the code above in your browser using DataLab