plot_meanboxplot.circGLM: Plot mean comparison boxplot from circGLM objects

View source: R/circGLMClassPlotFunctions.R

plot_meanboxplot.circGLMR Documentation

Plot mean comparison boxplot from circGLM objects

Description

If the main predictors of interest for the circGLM are categorical, it can be insightful to plot the posteriors of the group means side-by-side, which this function does. This is particularly useful for ANOVA or ANCOVA type designs.

Usage

plot_meanboxplot.circGLM(m, xlab = "Mean direction")

Arguments

m

A circGLM object.

xlab

The label of the x-axis.

Details

If there are linear predictors in the model as well, the posteriors displayed will correspond to the intercept parameter for each group.

Some caution is needed, as a regular linear boxplot is printed, which may not always be meaningful for a circular variable.

See Also

plot_trace.circGLM, plot_tracestack.circGLM, plot_predict.circGLM, plot_meancompare.circGLM, plot.circGLM.

Examples

dat <- generateCircGLMData(nconpred = 0)
m   <- circGLM(th ~ ., dat)
plot_meancompare.circGLM(m)

keesmulder/circglmbayes documentation built on July 24, 2022, 6:39 a.m.