R/reproduce_figure.R

Defines functions reproduce_figure

Documented in reproduce_figure

#' Create a figure depicting reproducibility
#'
#' \code{reproduce_figure} is a wrapper around the \code{sci_figure} function
#' to illustrate reproducibility in a two-experiment setting. Options for
#' \code{sci_figure} are accepted, but this may be run as is.
#'
#' @param ... Additional arguments passed to \code{sci_figure}.
#'
#' @seealso \code{\link{sci_figure}} for additional arguments.
#'
#' @export

reproduce_figure <- function(...){
	exps <- init_experiments(2, exp_names = c("Original", "Reproduction"))
	exps["analyst", "Reproduction"] <- "different"
	sci_figure(exps, ...)
}

Try the scifigure package in your browser

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

scifigure documentation built on May 2, 2019, 4:01 a.m.