LatticePlotWrapper_csis360: A legacy function for graphs that allows primary and...

View source: R/Plot_Style.R

LatticePlotWrapper_csis360R Documentation

A legacy function for graphs that allows primary and secondary facets and

Description

A legacy function for graphs that allows primary and secondary facets and

Usage

LatticePlotWrapper_csis360(
  VAR.color.legend.label,
  VAR.main.label,
  VAR.X.label,
  VAR.Y.label,
  VAR.Coloration,
  VAR.long.DF,
  VAR.ncol = NA,
  VAR.x.variable,
  VAR.y.variable,
  VAR.y.series,
  VAR.facet.primary = NA,
  VAR.facet.secondary = NA,
  MovingAverage = 1,
  MovingSides = 1,
  DataLabels = NA,
  caption = FALSE,
  legend = FALSE,
  geom.text.size = 2.5
)

Arguments

VAR.color.legend.label

Label for the fill legend

VAR.main.label

Main title for the graph

VAR.X.label

X-axis label

VAR.Y.label

Y-axis label

VAR.Coloration

A csis360 lookup data.frame with factor information

VAR.long.DF

A data frame of formatted data for the ggplot

VAR.x.variable

The name of fiscal year variable, as string

VAR.y.variable

The name of variable to plot on y-axis

VAR.y.series

The name of the coloration variable, as string

VAR.facet.primary

The name of the primary facet variable, as string. Defaults to NA.

VAR.facet.secondary

The name of the secondary facet variable, as string. Defaults to NA.

MovingAverage

Hww many units to include in a moving average, defaults to 1, i.e. no average.

MovingSides

How to center the moving average.

DataLabels

Whether to draw data labels on the graph, default=NA or no.

caption

If TRUE, includes a source caption, default is false.

legend

If TRUE, includes a legend, default is false.

geom.text.size

Size multipllier for text on the graph. .

ncol

Number of columns for a facet_wrap, doesn't apply if there's a secondary facet

share

If TRUE, calculates the share

Details

This should really be integrated into build_plot

Value

A ggplot object following user-specified parameters.


CSISdefense/csis360 documentation built on April 29, 2024, 5:30 p.m.