# NOT RUN {
# create an example
params <- NS_params
species_params(params)$yield_observed <-
c(0.8, 61, 12, 35, 1.6, NA, 10, 7.6, 135, 60, 30, NA)
params <- calibrateYield(params)
# Plot with default options
plotYieldObservedVsModel(params)
# Plot including also species without observations
plotYieldObservedVsModel(params, show_unobserved = TRUE)
# Show the ratio instead
plotYieldObservedVsModel(params, ratio = TRUE)
# Run a simulation
params <- matchYields(params)
sim <- project(params, t_max = 10, progress_bar = FALSE)
plotBiomass(sim)
# Plot the yield comparison at the final time
plotYieldObservedVsModel(sim)
# The same with no log scaling of axes
plotYieldObservedVsModel(sim, log_scale = FALSE)
# }
Run the code above in your browser using DataLab