plot method for class "hef".
Arguments
- x
an object of class "hef", a result of a call to
ru.- y
Not used.
- ...
Additional arguments passed to
plot.ru,historpairs. In particular,ru_scale = TRUEproduces a plot using the parameterization used for ratio-of-uniforms sampling.- params
A character scalar that determines to which parameters the plots relate.
"hyper": the posterior sample of all hyperparameter values in \(\phi\) is plotted usingplot.ru."ru": only the posterior sample generated usingruis plotted usingplot.ru. This produces a different plot toparams = "hyper"ifruis used only on a subset of \(\phi\). For example, this may be the case ifxis the result of a call tohanova1. See vignette("bang-c-anova-vignette", package = "bang") for information."pop": posterior samples and/or densities of the population-specific parameter \(\theta\) are plotted. The population(s) included are determined bywhich_popand the type of plot is determined byplot_type. Ifplot_typeis not supplied then it is set to"dens".
- which_pop
An integer vector or character scalar. If
params = "pop"thenwhich_popindicates which populations to include in the plot. Ifwhich_popis supplied thenparamsis set to "pop". Ifwhich_pop = "all"then all populations are included. If there are many populations then this may fail ifplot_type = "pairs"and/orone_plot = FALSE.- plot_type
A character scalar that determines the type of plot produced when
params = "pop". Ifplot_typeis supplied thenparamsis set automatically to"pop"."sim": histograms of the posterior samples of \(\theta\) for the populations inwhich_pop."dens": estimates of the marginal posterior densities of \(\theta\) for the populations inwhich_pop."both": both the histograms and estimated posterior densities."pairs": pairwise scatter plots of the posterior samples of \(\theta\) for the populations inwhich_pop, which must have length greater than one.
- one_plot, add_legend, legend_position, legend_text
Only relevant if
plot_type = "dens". Ifone_plot = TRUEthen the estimated marginal posterior densities are plotted in the same graph and ifadd_legend = TRUEthen a legend is added to this plot usinglegendin the position indicated by the character scalarlegend_position. A character vectorlegend_textmay be used to override the default legend text.- num
A numeric scalar. If
plot_type == "dens"orplot_type == "both"thennumgives the number of points at which the marginal densities are evaluated to produce plots.
See also
plot.ru for arguments that may be passed
via ...., in particular ru_scale.