Description Usage Arguments Value See Also
.
1 2 3 4 5 6 7 8 9 10 11 | ## Summarize samples
summary_stats(x, dig = 2, ...)
## Generate source attribution line plot
sa_plot(samples, what = "food", main = NULL)
## Generate source attribution barplot
sa_barplot(samples)
## Generate source attribution PDF report
sa_report(hazard, exp_samples, food_samples, exp_source, food_source)
|
x |
vector of samples |
dig |
integer indicating the number of decimal places to be used |
... |
other arguments to be passed to underlying functions |
samples |
list or matrix samples |
what |
item to be plotted |
main |
main plot title |
hazard |
name of the hazard |
exp_samples |
list of exposure route samples |
food_samples |
list of food item samples |
exp_source |
vector of exposure route names |
food_source |
vector of food item names |
summary_stats
returns a vector of the samples' mean, median, and 90% and 95% uncertainty interval. sa_plot
and sa_barplot
generate a ggplot2 graph. sa_report
generates a PDF report.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.