Description Usage Arguments Value See Also Examples
View source: R/regenerate_img.R
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.
1 | regenerate_img(seed_to_recreate, filetype, polar = FALSE)
|
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") |
an image as png
get_formula_from_logfile
get the formula for recreation
get_seed_from_logfile
get the seed, which is used as input
1 | regenerate_img(0104, polar = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.