Learn R Programming

ArchaeoPhases (version 1.8)

reproduce.archaeophases_plot: 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 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.

See Also

original_file

Examples

Run this code
# 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")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab