R/helper.R

Defines functions retrocombinatorTheme isProbability isPositiveNumber

isPositiveNumber <- function(n) {
  is.numeric(n) && n > 0
}
isProbability <- function(n) {
  is.numeric(n) && n >= 0 && n <= 1
}

retrocombinatorTheme <- function() {
  ggplot2::theme(
    legend.position = "bottom",
    legend.direction = "vertical"
  )
}

Try the retrocombinator package in your browser

Any scripts or data that you put into this service are public.

retrocombinator documentation built on Nov. 12, 2021, 1:07 a.m.