Description Usage Arguments Details Value Examples
This function plots null and estimation intervals
1 2 3 | sgpv_plot_intervals(data, estimate_lb = 1, estimate_ub = 2,
null_lb = 3, null_ub = 4, yvar = NULL, shift = 0,
est_col = "#d7191c80", null_col = "#2c7bb680")
|
data |
A data.frame or data.table which includes interval bounds for the estimate and the null region. |
estimate_lb |
Column number or variable name of the estimate interval lower bound. Default = 1 |
estimate_ub |
Column number or variable name of the estimate interval upper bound. Default = 2 |
null_lb |
Column number or variable name of the null interval lower bound. Default = 3 |
null_ub |
Column number or variable name of the null interval upper bound. Default = 4 |
yvar |
Column number or variable name of the column which indicates the y-value of the interval in the plot. If NULL, intervals are ploted at integer values corresponding to the negative row number. |
shift |
Scalar value indicating how much to separate null and estimate intervals vertically. Value is relative to |
est_col |
Color of estimate intervals |
null_col |
Color of null intervals |
Generates a plot with intervals.
Function invisibly returns a list with the bookend values used in the plot, the pch matrix used for the symbols, and the yvar matrix.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.