reproduce.archaeophases_plot: Reproduce an ArchaeoPhases plot

View source: R/S3Classes.R

reproduce.archaeophases_plotR Documentation

Reproduce an ArchaeoPhases plot

Description

Reproduces a plot from metadata held in an archaeophases_plot object. Returns NULL if file is not the original file.

Usage

## S3 method for class 'archaeophases_plot'
reproduce(x, file = NULL, ...)

Arguments

x

An archaeophases_plot object.

file

Path to the original MCMC csv file, or a copy of the file.

...

Other parameters.

Author(s)

Thomas S. Dye, tsd@tsdye.online

See Also

original_file

Examples

## Not run: 
x <- read_bcal("http://tsdye.online/AP/bc-1.csv")
y <- multi_dates_plot(x)
z <- reproduce(y)
# TRUE
identical(y, z)

#ERROR, Not the original file.
z <- reproduce(y, file = "foo.csv")

## End(Not run)


ArchaeoPhases documentation built on June 22, 2022, 1:05 a.m.