R/forest_model_format_options.R

Defines functions forest_model_format_options

Documented in forest_model_format_options

#' Create format options for \code{forest_model}
#'
#' @param colour colour of the point estimate and error bars
#' @param color alias for colour
#' @param shape shape of the point estimate
#' @param text_size text size in mm
#' @param point_size point size
#' @param banded whether to show light grey bands behind alternate rows
#'
#'
#' @return list of format options
#' @export
#'
forest_model_format_options <- function(colour = "black", color = NULL, shape = 15,
                                        text_size = 5, point_size = 5, banded = TRUE) {
  structure(
    list(
      colour = colour %||% color,
      shape = shape,
      text_size = text_size,
      point_size = point_size,
      banded = banded
    ),
    class = "forest_model_format_options"
  )
}

Try the forestmodel package in your browser

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

forestmodel documentation built on July 19, 2020, 5:06 p.m.