Repair plots
Showing 1 of 1 files from the diff.
R/functions-new.R
changed.
@@ -354,18 +354,13 @@
Loading
354 | 354 | } |
|
355 | 355 | ||
356 | 356 | nslots <- rows*cols |
|
357 | - | if ( all(c("digits", "second order", "summation", "chi squared", "ex summation") %in% select)) { |
|
358 | - | plot_this <- c("digits", "second order", "summation","chi squared", "ex summation", "legend") |
|
359 | - | m <- matrix(c(1,2,3,4,2,5,6,6,6), nrow = 3, ncol = 3, byrow = TRUE) |
|
360 | - | layout(mat = m, heights = c(0.45,0.45,0.1)) |
|
361 | - | }else{ |
|
362 | - | plot_this <- c(rep("blank", nslots), "legend") |
|
363 | - | plot_this[1:nGraphics] <- plots |
|
364 | - | m <- matrix(c(1:nslots, rep(nslots + 1, cols)), nrow = rows + 1, ncol = cols,byrow = TRUE) |
|
365 | - | layout(mat = m, heights = c(rep(0.9/rows, rows), 0.1)) |
|
366 | - | } |
|
357 | + | plot_this <- c(rep("blank", nslots), "legend") |
|
358 | + | plot_this[1:nGraphics] <- plots |
|
359 | + | m <- matrix(c(1:nslots, rep(nslots + 1, cols)), nrow = rows + 1, ncol = cols,byrow = TRUE) |
|
360 | + | layout(mat = m, heights = c(rep(0.9/rows, rows), 0.1)) |
|
367 | 361 | } |
|
368 | 362 | ||
363 | + | lg_size <- ifelse(rows > 1, 1, ifelse(err.bounds, 0.6, 0.7)) |
|
369 | 364 | ||
370 | 365 | for (i in 1:length(plot_this)) { |
|
371 | 366 | switch(plot_this[i], |
@@ -378,7 +373,7 @@
Loading
378 | 373 | "chi squared" = plotting.chi_squared(x, grid, ...), |
|
379 | 374 | "abs diff" = plotting.abs.diff(x, grid, ...), |
|
380 | 375 | "ex summation" = plotting.ex.summation(x, grid, ...), |
|
381 | - | "legend" = plotting.legend(x, err.bounds, rows*3/5), |
|
376 | + | "legend" = plotting.legend(x, err.bounds, lg_size), |
|
382 | 377 | "blank" = plot.new() |
|
383 | 378 | ) |
|
384 | 379 | } |
Files | Coverage |
---|---|
R | 100.00% |
Project Totals (3 files) | 100.00% |
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file.
The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files.
The size and color of each slice is representing the number of statements and the coverage, respectively.