bar_primeob_by_agency_scaling: Creating a bar chart of Prime Contract Obligations by Agency...

Description Usage Arguments Details Value Examples

View source: R/Contract Obligation by Agency.R

Description

Creating a bar chart of Prime Contract Obligations by Agency that is scaled into a Top Range and Bottom Range (two scalings)

Usage

1
2
3
4
bar_primeob_by_agency_scaling(company_name, FY = 1, n_agencies = 6,
  scale = 1e+06, scale_text = "Millions", FY_range, top_range,
  bottom_range, optional_third_range = NULL, grid_division,
  num_size = 4, h = 6, w = 11)

Arguments

company_name

Name of the company, used in filename and chart title

FY

Fiscal year to filter out, commonly the current fiscal year due to incomplete data

n_agencies

The number of agencies to include in the view; defaults to 6

scale

Dollar scale; default to 1000000

scale_text

Dollar scale as text; defaults to Millions

FY_range

Fiscal Year range included, for example "FY14-FY17"

top_range

agencies to be included in the first scaling

bottom_range

agencies to be included in the second scaling

optional_third_range

if scaling data by three ranges, use this field; otherwise defaults to NULL

grid_division

respective sizes of ranges to arrange the final grid. This generally is the number of agencies in the top_range and the number in the bottom_range written as a vector.

num_size

Size of heading text for agency names, default to 3. Note that the fewer the agencies used, the larger the text should be

h

Height of saved chart; defaults to 6

w

Width of saved chart; defaults to 11. Note that more agencies requires a greater width

Details

Unless already known, use the bar_primeob_by_agency() function to determine the Top Range and Bottom Range agencies.

Value

A bar chart, with two differently scales charts of the data

Examples

1
2
3
4
5
6
bar_primeob_by_agency _scaling(company_name = "Leidos", FY = 2018,
                                         n_agencies = 5, scale = 1000000000,
                                         scale_text = "Billions", FY_range = "FY14-FY17",
                                         top_range = c(1:2,4), bottom_range = c(3,5),
                                         grid_division = c(3,2), num_size = 3,
                                         h = 7, w = 13)

MSTRoth/PSC-MB documentation built on May 26, 2019, 2:36 a.m.