Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 1 | # Copyright 2017 Open Networking Foundation (ONF) |
| 2 | # |
| 3 | # Please refer questions to either the onos test mailing list at <onos-test@onosproject.org>, |
| 4 | # the System Testing Plans and Results wiki page at <https://wiki.onosproject.org/x/voMg>, |
| 5 | # or the System Testing Guide page at <https://wiki.onosproject.org/x/WYQg> |
| 6 | # |
| 7 | # TestON is free software: you can redistribute it and/or modify |
| 8 | # it under the terms of the GNU General Public License as published by |
| 9 | # the Free Software Foundation, either version 2 of the License, or |
| 10 | # (at your option) any later version. |
| 11 | # |
| 12 | # TestON is distributed in the hope that it will be useful, |
| 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | # GNU General Public License for more details. |
| 16 | # |
| 17 | # You should have received a copy of the GNU General Public License |
| 18 | # along with TestON. If not, see <http://www.gnu.org/licenses/>. |
| 19 | # |
| 20 | # If you have any questions, or if you don't understand R, |
Jeremy Ronquillo | b626884 | 2017-10-03 13:02:58 -0700 | [diff] [blame] | 21 | # please contact Jeremy Ronquillo: j_ronquillo@u.pacific.edu |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 22 | |
| 23 | # ********************************************************** |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 24 | # STEP 1: Data management. |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 25 | # ********************************************************** |
| 26 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 27 | print( "**********************************************************" ) |
| 28 | print( "STEP 1: Data management." ) |
| 29 | print( "**********************************************************" ) |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 30 | |
Jeremy Ronquillo | b626884 | 2017-10-03 13:02:58 -0700 | [diff] [blame] | 31 | # Command line arguments are read. |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 32 | print( "Reading commmand-line args." ) |
| 33 | args <- commandArgs( trailingOnly=TRUE ) |
| 34 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 35 | # ---------------- |
| 36 | # Import Libraries |
| 37 | # ---------------- |
| 38 | |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 39 | print( "Importing libraries." ) |
| 40 | library( ggplot2 ) |
| 41 | library( reshape2 ) |
| 42 | library( RPostgreSQL ) # For databases |
| 43 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 44 | # ------------------- |
| 45 | # Check CLI Arguments |
| 46 | # ------------------- |
| 47 | |
| 48 | print( "Verifying CLI args." ) |
| 49 | |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 50 | if ( is.na( args[ 7 ] ) ){ |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 51 | |
| 52 | print( paste( "Usage: Rscript SCPFbatchFlowResp", |
| 53 | "<database-host>", |
| 54 | "<database-port>", |
| 55 | "<database-user-id>", |
| 56 | "<database-password>", |
| 57 | "<test-name>", |
| 58 | "<branch-name>", |
| 59 | "<directory-to-save-graphs>", |
| 60 | sep=" " ) ) |
| 61 | |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 62 | q() # basically exit(), but in R |
| 63 | } |
| 64 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 65 | # ----------------- |
| 66 | # Create File Names |
| 67 | # ----------------- |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 68 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 69 | print( "Creating filenames and title of graph." ) |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 70 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 71 | postOutputFile <- paste( args[ 7 ], |
| 72 | args[ 5 ], |
| 73 | "_", |
| 74 | args[ 6 ], |
| 75 | "_PostGraph.jpg", |
| 76 | sep="" ) |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 77 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 78 | delOutputFile <- paste( args[ 7 ], |
| 79 | args[ 5 ], |
| 80 | "_", |
| 81 | args[ 6 ], |
| 82 | "_DelGraph.jpg", |
| 83 | sep="" ) |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 84 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 85 | postChartTitle <- paste( "Single Bench Flow Latency - Post", "Last 3 Builds", sep = "\n" ) |
| 86 | delChartTitle <- paste( "Single Bench Flow Latency - Del", "Last 3 Builds", sep = "\n" ) |
| 87 | |
| 88 | # ------------------ |
| 89 | # SQL Initialization |
| 90 | # ------------------ |
| 91 | |
| 92 | print( "Initializing SQL" ) |
| 93 | |
| 94 | con <- dbConnect( dbDriver( "PostgreSQL" ), |
| 95 | dbname = "onostest", |
| 96 | host = args[ 1 ], |
| 97 | port = strtoi( args[ 2 ] ), |
| 98 | user = args[ 3 ], |
| 99 | password = args[ 4 ] ) |
| 100 | |
| 101 | # --------------------------- |
| 102 | # Batch Flow Resp SQL Command |
| 103 | # --------------------------- |
| 104 | |
| 105 | print( "Generating Batch Flow Resp SQL Command" ) |
| 106 | |
| 107 | command <- paste( "SELECT * FROM batch_flow_tests WHERE branch='", |
| 108 | args[ 6 ], |
| 109 | "' ORDER BY date DESC LIMIT 3", |
| 110 | sep="" ) |
| 111 | |
| 112 | print( "Sending SQL command:" ) |
| 113 | print( command ) |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 114 | |
| 115 | fileData <- dbGetQuery( con, command ) |
| 116 | |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 117 | |
| 118 | # ********************************************************** |
| 119 | # STEP 2: Organize data. |
| 120 | # ********************************************************** |
| 121 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 122 | print( "**********************************************************" ) |
| 123 | print( "STEP 2: Organize Data." ) |
| 124 | print( "**********************************************************" ) |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 125 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 126 | # ----------------- |
| 127 | # Post Data Sorting |
| 128 | # ----------------- |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 129 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 130 | print( "Sorting data for Post." ) |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 131 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 132 | postAvgs <- c( fileData[ 'posttoconfrm' ], |
| 133 | fileData[ 'elapsepost' ] ) |
| 134 | |
| 135 | # ------------------------- |
| 136 | # Post Construct Data Frame |
| 137 | # ------------------------- |
| 138 | |
| 139 | postDataFrame <- melt( postAvgs ) |
| 140 | postDataFrame$scale <- fileData$scale |
| 141 | postDataFrame$date <- fileData$date |
| 142 | postDataFrame$iterative <- rev( seq( 1, nrow( fileData ), by = 1 ) ) |
| 143 | |
| 144 | colnames( postDataFrame ) <- c( "ms", |
| 145 | "type", |
| 146 | "scale", |
| 147 | "date", |
| 148 | "iterative" ) |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 149 | |
| 150 | # Format data frame so that the data is in the same order as it appeared in the file. |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 151 | postDataFrame$type <- as.character( postDataFrame$type ) |
| 152 | postDataFrame$type <- factor( postDataFrame$type, |
| 153 | levels = unique( postDataFrame$type ) ) |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 154 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 155 | postDataFrame <- na.omit( postDataFrame ) # Omit any data that doesn't exist |
Jeremy Ronquillo | 2d2649d | 2017-09-14 12:53:06 -0700 | [diff] [blame] | 156 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 157 | print( "Post Data Frame Results:" ) |
| 158 | print( postDataFrame ) |
| 159 | |
| 160 | # ---------------- |
| 161 | # Del Data Sorting |
| 162 | # ---------------- |
| 163 | |
| 164 | print( "Sorting data for Del." ) |
| 165 | avgs <- c( fileData[ 'deltoconfrm' ], |
| 166 | fileData[ 'elapsedel' ] ) |
| 167 | |
| 168 | # ------------------------ |
| 169 | # Del Construct Data Frame |
| 170 | # ------------------------ |
| 171 | |
| 172 | delDataFrame <- melt( avgs ) |
| 173 | delDataFrame$scale <- fileData$scale |
| 174 | delDataFrame$date <- fileData$date |
| 175 | delDataFrame$iterative <- rev( seq( 1, nrow( fileData ), by = 1 ) ) |
| 176 | |
| 177 | colnames( delDataFrame ) <- c( "ms", |
| 178 | "type", |
| 179 | "scale", |
| 180 | "date", |
| 181 | "iterative" ) |
| 182 | |
| 183 | # Format data frame so that the data is in the same order as it appeared in the file. |
| 184 | delDataFrame$type <- as.character( delDataFrame$type ) |
| 185 | delDataFrame$type <- factor( delDataFrame$type, |
| 186 | levels = unique( delDataFrame$type ) ) |
| 187 | |
| 188 | delDataFrame <- na.omit( delDataFrame ) # Omit any data that doesn't exist |
| 189 | |
| 190 | print( "Del Data Frame Results:" ) |
| 191 | print( delDataFrame ) |
Jeremy Ronquillo | 2d2649d | 2017-09-14 12:53:06 -0700 | [diff] [blame] | 192 | |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 193 | # ********************************************************** |
| 194 | # STEP 3: Generate graphs. |
| 195 | # ********************************************************** |
| 196 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 197 | print( "**********************************************************" ) |
| 198 | print( "STEP 3: Generate Graph." ) |
| 199 | print( "**********************************************************" ) |
| 200 | |
| 201 | # ------------------------------------------ |
| 202 | # Initializing variables used in both graphs |
| 203 | # ------------------------------------------ |
| 204 | |
| 205 | print( "Initializing variables used in both graphs." ) |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 206 | |
Jeremy Ronquillo | 0e27b91 | 2017-10-21 14:34:24 -0700 | [diff] [blame] | 207 | theme_set( theme_grey( base_size = 22 ) ) # set the default text size of the graph. |
Jeremy Ronquillo | b626884 | 2017-10-03 13:02:58 -0700 | [diff] [blame] | 208 | xLabel <- xlab( "Build Date" ) |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 209 | yLabel <- ylab( "Latency (ms)" ) |
| 210 | fillLabel <- labs( fill="Type" ) |
Jeremy Ronquillo | 0e27b91 | 2017-10-21 14:34:24 -0700 | [diff] [blame] | 211 | colors <- scale_fill_manual( values=c( "#F77670", "#619DFA" ) ) |
| 212 | wrapLegend <- guides( fill=guide_legend( nrow=1, byrow=TRUE ) ) |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 213 | barWidth <- 0.3 |
| 214 | imageWidth <- 15 |
| 215 | imageHeight <- 10 |
| 216 | imageDPI <- 200 |
| 217 | |
| 218 | theme <- theme( plot.title = element_text( hjust = 0.5, size = 32, face = 'bold' ), |
| 219 | legend.position = "bottom", |
| 220 | legend.text = element_text( size = 22 ), |
| 221 | legend.title = element_blank(), |
| 222 | legend.key.size = unit( 1.5, 'lines' ) ) |
| 223 | |
| 224 | barGraphFormat <- geom_bar( stat = "identity", |
| 225 | width = barWidth ) |
| 226 | |
| 227 | # ----------------------- |
| 228 | # Post Generate Main Plot |
| 229 | # ----------------------- |
| 230 | |
| 231 | print( "Creating main plot for Post graph." ) |
| 232 | |
| 233 | mainPlot <- ggplot( data = postDataFrame, aes( x = iterative, |
| 234 | y = ms, |
| 235 | fill = type ) ) |
| 236 | |
| 237 | # ----------------------------------- |
| 238 | # Post Fundamental Variables Assigned |
| 239 | # ----------------------------------- |
| 240 | |
| 241 | print( "Generating fundamental graph data for Post graph." ) |
| 242 | |
| 243 | xScaleConfig <- scale_x_continuous( breaks = postDataFrame$iterative, |
| 244 | label = postDataFrame$date ) |
| 245 | title <- ggtitle( postChartTitle ) |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 246 | |
| 247 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 248 | fundamentalGraphData <- mainPlot + |
| 249 | xScaleConfig + |
| 250 | xLabel + |
| 251 | yLabel + |
| 252 | fillLabel + |
| 253 | theme + |
| 254 | wrapLegend + |
| 255 | colors + |
| 256 | title |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 257 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 258 | # -------------------------------- |
| 259 | # Post Generating Bar Graph Format |
| 260 | # -------------------------------- |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 261 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 262 | print( "Generating bar graph for Post graph." ) |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 263 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 264 | sum <- fileData[ 'posttoconfrm' ] + |
| 265 | fileData[ 'elapsepost' ] |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 266 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 267 | values <- geom_text( aes( x = postDataFrame$iterative, |
| 268 | y = sum + 0.03 * max( sum ), |
| 269 | label = format( sum, |
| 270 | digits = 3, |
| 271 | big.mark = ",", |
| 272 | scientific = FALSE ) ), |
| 273 | size = 7.0, |
| 274 | fontface = "bold" ) |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 275 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 276 | result <- fundamentalGraphData + |
| 277 | barGraphFormat + |
| 278 | values |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 279 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 280 | # ---------------------------- |
| 281 | # Post Exporting Graph to File |
| 282 | # ---------------------------- |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 283 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 284 | print( paste( "Saving Post bar chart to", postOutputFile ) ) |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 285 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 286 | ggsave( postOutputFile, |
| 287 | width = imageWidth, |
| 288 | height = imageHeight, |
| 289 | dpi = imageDPI ) |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 290 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 291 | print( paste( "[SUCCESS] Successfully wrote stacked bar chart out to", postOutputFile ) ) |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 292 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 293 | # ---------------------- |
| 294 | # Del Generate Main Plot |
| 295 | # ---------------------- |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 296 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 297 | print( "Creating main plot for Del graph." ) |
Jeremy Ronquillo | 2d2649d | 2017-09-14 12:53:06 -0700 | [diff] [blame] | 298 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 299 | mainPlot <- ggplot( data = delDataFrame, aes( x = iterative, |
| 300 | y = ms, |
| 301 | fill = type ) ) |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 302 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 303 | # ---------------------------------- |
| 304 | # Del Fundamental Variables Assigned |
| 305 | # ---------------------------------- |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 306 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 307 | print( "Generating fundamental graph data for Del graph." ) |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 308 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 309 | xScaleConfig <- scale_x_continuous( breaks = delDataFrame$iterative, |
| 310 | label = delDataFrame$date ) |
| 311 | title <- ggtitle( delChartTitle ) |
Jeremy Ronquillo | 2d2649d | 2017-09-14 12:53:06 -0700 | [diff] [blame] | 312 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 313 | fundamentalGraphData <- mainPlot + |
| 314 | xScaleConfig + |
| 315 | xLabel + |
| 316 | yLabel + |
| 317 | fillLabel + |
| 318 | theme + |
| 319 | wrapLegend + |
| 320 | colors + |
| 321 | title |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 322 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 323 | # ------------------------------- |
| 324 | # Del Generating Bar Graph Format |
| 325 | # ------------------------------- |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 326 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 327 | print( "Generating bar graph for Del graph." ) |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 328 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 329 | sum <- fileData[ 'deltoconfrm' ] + |
| 330 | fileData[ 'elapsedel' ] |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 331 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 332 | values <- geom_text( aes( x = delDataFrame$iterative, |
| 333 | y = sum + 0.03 * max( sum ), |
| 334 | label = format( sum, |
| 335 | digits = 3, |
| 336 | big.mark = ",", |
| 337 | scientific = FALSE ) ), |
| 338 | size = 7.0, |
| 339 | fontface = "bold" ) |
Jeremy Ronquillo | 6df8781 | 2017-08-28 16:17:36 +0000 | [diff] [blame] | 340 | |
Jeremy Ronquillo | 7673f80 | 2017-10-30 09:42:44 -0700 | [diff] [blame] | 341 | result <- fundamentalGraphData + |
| 342 | barGraphFormat + |
| 343 | title + |
| 344 | values |
| 345 | |
| 346 | # --------------------------- |
| 347 | # Del Exporting Graph to File |
| 348 | # --------------------------- |
| 349 | |
| 350 | print( paste( "Saving Del bar chart to", delOutputFile ) ) |
| 351 | |
| 352 | ggsave( delOutputFile, |
| 353 | width = imageWidth, |
| 354 | height = imageHeight, |
| 355 | dpi = imageDPI ) |
| 356 | |
| 357 | print( paste( "[SUCCESS] Successfully wrote stacked bar chart out to", delOutputFile ) ) |