|
612 | 612 | nTest <- result[["ntest"]]
|
613 | 613 | plotData <- data.frame(y = c(nTrain, nTest), x = c("Train", "Test"), group = c(1, 1))
|
614 | 614 | p <- ggplot2::ggplot(data = plotData, mapping = ggplot2::aes(x = group, y = y, fill = factor(x, levels = c("Test", "Train")))) +
|
615 |
| - ggplot2::geom_bar(stat = "identity", col = "black", size = 0.5) + |
| 615 | + ggplot2::geom_bar(stat = "identity", col = "black", linewidth = 0.5) + |
616 | 616 | ggplot2::scale_y_continuous(name = NULL, limits = c(0, nTrain + nTest + ((nTrain + nTest) / 5))) + # adjust limits to include "Total" text
|
617 | 617 | ggplot2::coord_flip() +
|
618 | 618 | ggplot2::labs(x = NULL) +
|
|
629 | 629 | nTest <- result[["ntest"]]
|
630 | 630 | plotData <- data.frame(y = c(nTrain, nValid, nTest), x = c("Train", "Validation", "Test"), group = c(1, 1, 1))
|
631 | 631 | p <- ggplot2::ggplot(data = plotData, mapping = ggplot2::aes(x = group, y = y, fill = factor(x, levels = c("Test", "Validation", "Train")))) +
|
632 |
| - ggplot2::geom_bar(stat = "identity", col = "black", size = 0.5) + |
| 632 | + ggplot2::geom_bar(stat = "identity", col = "black", linewidth = 0.5) + |
633 | 633 | ggplot2::scale_y_continuous(name = NULL, limits = c(0, nTrain + nValid + nTest + ((nTrain + nValid + nTest) / 5))) + # adjust limits to include "Total" text
|
634 | 634 | ggplot2::coord_flip() +
|
635 | 635 | ggplot2::labs(x = NULL) +
|
|
651 | 651 | nTest <- result[["ntest"]]
|
652 | 652 | plotData <- data.frame(y = c(nTrainAndValid, nTest), x = c("Train and validation", "Test"), group = c(1, 1))
|
653 | 653 | p <- ggplot2::ggplot(data = plotData, mapping = ggplot2::aes(x = group, y = y, fill = factor(x, levels = c("Test", "Train and validation")))) +
|
654 |
| - ggplot2::geom_bar(stat = "identity", col = "black", size = 0.5) + |
| 654 | + ggplot2::geom_bar(stat = "identity", col = "black", linewidth = 0.5) + |
655 | 655 | ggplot2::scale_y_continuous(name = NULL, limits = c(0, nTrainAndValid + nTest + ((nTrainAndValid + nTest) / 5))) + # adjust limits to include "Total" text
|
656 | 656 | ggplot2::coord_flip() +
|
657 | 657 | ggplot2::xlab(NULL) +
|
|
0 commit comments