plot.warnProb
is a plotting utile for quick visualization of the posterior weaning parameters from an object of class "warnProb"
. Results of kernel density estimation for the posteriors are plotted as a form of contour
with designated parameter ranges.
# S3 method for warnProb
plot(x, is.legend = TRUE, is.contour = TRUE,
is.image = FALSE, is.prior = FALSE, ...)
an object of class "warnProb"
generated by warnProb
.
logical; if TRUE
(the default), legend is plotted on the figure.
logical; if TRUE
(the default), contour lines corresponding to the probabilirties are plotted with contour
. Only used if the intended weanig parameter is weaning ages (i.e., weaning.par = "age"
in warnProb
).
logical; if TRUE
, grid of gray-scale rectangles with color strength corresponding to the probabilirties is plotted with image
. The default is FALSE
, and only used if the intended weanig parameter is weaning ages (i.e., weaning.par = "age"
in warnProb
).
logical; if TRUE
, prior density of the paramter is also plotted with dotted line. The default is FALSE
, and only used if the intended weanig parameter is enrichment or weaning food (i.e., weaning.par = "enrich"
or "wnfood"
in warnProb
).
additional arguments passed to plot
.
Values on the contour lines indicate relative probabilities based on that of the maximum density estimator.
Tsutaya, T., and Yoneda, M. (2013). Quantitative reconstruction of weaning ages in archaeological human populations using bone collagen nitrogen isotope ratios and approximate Bayesian computation. PLoS ONE 8, e72327.
WARN
, warn
, warnCI
, warnProb
, summary.warnProb
## See ?warnProb for examples.
Run the code above in your browser using DataLab