Learn R Programming

circglmbayes (version 1.3.0)

plot.circGLM: Plot circGLM object

Description

General plot function for circGLM objects, which dispatches the chosen type of plotting to the corresponding function.

Usage

# S3 method for circGLM
plot(x, type = "trace", ...)

Arguments

x

A circGLM object to be plotted.

type

Character string giving the type of plotting. The options are "trace", "tracestack", "predict", "meancompare" and "meanboxplot".

...

Additional arguments to be passed to subsequent plot functions.

See Also

plot_trace.circGLM, plot_tracestack.circGLM, plot_predict.circGLM, plot_meancompare.circGLM and plot_meanboxplot.circGLM.

Examples

Run this code
# NOT RUN {
plot(circGLM(th = rvmc(10, 1, 1)))

dat <- generateCircGLMData(n = 100, nconpred = 1, ncatpred = 1)
m   <- circGLM(th ~ ., dat, Q = 100, burnin = 0)

# Traceplot by default
plot(m)

# Traceplot stack
plot(m, type = "tracestack")

# Prediction plot
plot(m, type = "predict")

# Mean comparisons
plot(m, type = "meancompare")
plot(m, type = "meanboxplot")

# }

Run the code above in your browser using DataLab