The scripts that generate the graphs are written in the R programming language.
The scripts are structured in the following format:
- Data Management
- Data is obtained from the databases through SQL. CLI arguments, filename, and titles are also handled here.
- Importing libraries
- Command line arguments
- Title of the graph
- Filename
- SQL Initialization and Data Gathering
- Organize Data
- Raw data is sorted into a data frame. The data frame is used in generating the graph.
- Combining data into a single list.
- Using the list to construct a data frame
- Adding data as columns to the data frame
- Generate Graphs
- The graphs are formatted and constructed here.
- Main plot generated
- Fundamental variables assigned
- Generate specific graph format
- Exporting graph to file