R/supportFunc_ggplot2.R

Defines functions customTheme

Documented in customTheme

#' table of classification performances
#'
#' takes in predited weights and true labels and determines performance characterisitcs
#' @param weights are the predicted scores/probablities of test data
#' @param trubeLabels are the true labels associated with the test data
#' @param direction = "auto", ">", "<"
#' @export
## supportFunc_ggplot2.R May 07, 2016

# ---------------------------- custom theme function
# ----------------------------
customTheme = function(sizeStripFont, xAngle, hjust, vjust, xSize,
    ySize, xAxisSize, yAxisSize) {
    theme(strip.background = element_rect(colour = "black", fill = "white",
        size = 1), strip.text.x = element_text(size = sizeStripFont),
        strip.text.y = element_text(size = sizeStripFont), axis.text.x = element_text(angle = xAngle,
            hjust = hjust, vjust = vjust, size = xSize, color = "black"),
        axis.text.y = element_text(size = ySize, color = "black"),
        axis.title.x = element_text(size = xAxisSize, color = "black"),
        axis.title.y = element_text(size = yAxisSize, color = "black"),
        panel.background = element_rect(fill = "white", color = "black"))
}
singha53/amritr documentation built on July 21, 2019, 3:46 p.m.