sgpv_plot_intervals: Plot intervals

Description Usage Arguments Details Value Examples

Description

This function plots null and estimation intervals

Usage

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")

Arguments

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 yvar. Default is 0.

est_col

Color of estimate intervals

null_col

Color of null intervals

Details

Generates a plot with intervals.

Value

Function invisibly returns a list with the bookend values used in the plot, the pch matrix used for the symbols, and the yvar matrix.

Examples

1

thomasgstewart/sgpv documentation built on May 8, 2019, 1:25 a.m.