R/replicate_figure.R

Defines functions replicate_figure

Documented in replicate_figure

#' Create a figure depicting replicability
#'
#' \code{replicate_figure} is a wrapper around the \code{sci_figure} function
#' to illustrate replicability 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

replicate_figure <- function(...){
	exps <- init_experiments(2, exp_names = c("Original", "Replication"))
	exps[c("experimenter", "data", "analyst", "code", "estimate", "claim"), "Replication"] <- "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.