| plot_epoch_pair | R Documentation |
Plots a 2D density contour for the joint posterior of two gamma parameters from a birp object.
plot_epoch_pair(
x,
gamma1 = which(!x$post_gamma$is_fix)[1],
gamma2 = which(!x$post_gamma$is_fix)[2],
xlab = .getLabelGamma.birp(x, gamma1),
ylab = .getLabelGamma.birp(x, gamma2),
xlim = range(x$post_gamma$trace[, c(gamma1, gamma2)]),
ylim = xlim,
col = "deeppink",
diag.col = "black",
diag.lwd = 1,
diag.lty = 1,
zero.col = "black",
zero.lwd = 1,
zero.lty = 2,
print.p = TRUE,
add = FALSE,
...
)
x |
A |
gamma1 |
Integer; Index of the first gamma parameter to plot on the x-axis. Default is the first inferred gamma. |
gamma2 |
Integer; Index of the second gamma parameter to plot on the y-axis. Default is the second inferred gamma. |
xlab |
Character; Label for the x-axis. Default is dynamically set based on |
ylab |
Character; Label for the y-axis. Default is dynamically set based on |
xlim |
Numeric vector of length 2; Optional x-axis limits. Default is the range of gamma1 and gamma2 values. |
ylim |
Numeric vector of length 2; Optional y-axis limits. Default is the same as |
col |
Character or color specification; Color for contour lines. Default is |
diag.col |
Character or |
diag.lwd |
Numeric; Line width of the diagonal line. Default is 1. |
diag.lty |
Numeric or character; Line type of the diagonal line. Default is 1 (solid). |
zero.col |
Character or |
zero.lwd |
Numeric; Line width of the zero reference lines. Default is 1. |
zero.lty |
Numeric or character; Line type of the zero reference lines. Default is 2 (dashed). |
print.p |
Logical; If |
add |
Logical; If |
... |
Additional graphical parameters passed to |
No return value; called for side effects (plotting).
birp
data <- simulate_birp(timesOfChange = 2)
est <- birp(data, timesOfChange = 2)
plot_epoch_pair(est)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.