regenerate_img: Recreate an image

Description Usage Arguments Value See Also Examples

View source: R/regenerate_img.R

Description

This is the main function to recreate a previous generated image. It takes all relevant information from the log file to get exactly the same result. By using the same formula and the same seed you get the same randon numbers.

Usage

1
regenerate_img(seed_to_recreate, filetype, polar = FALSE)

Arguments

seed_to_recreate

the seed of the original image that either put in as a numeric value or vector from "get_seed_from_logfile()"

filetype

set the file type for the image

polar

logical should the plot have a polar coordinate system ("polar = TRUE") or a cartesian coordinate system ("polar = FALSE")

Value

an image as png

See Also

get_formula_from_logfile get the formula for recreation

get_seed_from_logfile get the seed, which is used as input

Examples

1
regenerate_img(0104, polar = FALSE)

samuelwaldman/random documentation built on Dec. 22, 2021, 10:14 p.m.