plot_continuous_var
creates a plot of how the mixture proportions
change according to a continuous covariate, as well as plots of the mixture
proportions for the individuals with minimum, median, and maximum covariate
values. Called by output_JAGS
if any continuous effects are in
the model.
plot_continuous_var(jags.1, mix, source, output_options)
output from run_model
output from load_mix_data
output from load_source_data
list containing options for plots and saving,
passed from output_JAGS
MixSIAR fits a continuous covariate as a linear regression in ILR/transform-space. Two terms are fit for the proportion of each source: an intercept and a slope. The plotted line uses the posterior median estimates of the intercept and slope, and the lines are curved because of the ILR-transform back into proportion-space. The 95% credible intervals are shaded.
If the model contains both a continuous AND a categorical (factor) covariate, MixSIAR fits a different intercept term for each factor level and all levels share the same slope term.
Francis et al. 2011