getApprovalBarConfig: Get Approval Bar Configuration

Description Usage Arguments Value Author(s)

View source: R/utils-approvals.R

Description

Given approval bars, return a named list of gsplot elements to call.

Usage

1
getApprovalBarConfig(approvals, ylim, ylog)

Arguments

approvals

A list of data objects relevant to plotting approval bars. Each list item must be named one of appr_approved_uv, appr_analyzed_uv, or appr_working_uv. Any other names will result in an error.

ylim

The y-axis interval, as ordered pair vector.

ylog

A Boolean truth value. TRUE indicates the y-axis is referenced to log10; linear y-axis otherwise.

Value

a list of configs (data + style) ready to be added to the gsplot object for each approval bar. Each config is a list named "rect" with appropriate rect arguments and any styles (likely color and border) defined.

Author(s)

Andrew Halper


USGS-R/repgen documentation built on April 14, 2021, 2:47 p.m.