Description Usage Arguments Value See Also Examples
This is the main function of the package generativeimgR. It calls all the other function neccessary to produce multiple generative images at once.
1 | generate_img(formula, nr_of_img, polar = FALSE, filetype = "png", ...)
|
formula |
the formula you want to use as a list |
nr_of_img |
the number of images that should be created |
polar |
logical should the plot have a polar coordinate system ("polar = TRUE") or a cartesian coordinate system ("polar = FALSE") |
filetype |
filetype of the final image. Default is 'png', for other options see the 'devics' argument in 'gggplot::gsave()' |
... |
further arguments like color and background_color |
as many png files as you net in "nr_of_img"
generate_seeds
generate the seeds for the randomness
generate_filename
generate the file names
check_logfile_existence
create a log file, if there is none
generate_logfile_entry
generate the specific entry for the log file
generate_data
generate the data depending on the formula
generate_plot
plot the data and save a png file
1 2 | generate_img(formula = my_formula, nr_of_img = 3, polar = FALSE)
generate_img(formula = my_formula, nr_of_img = 3, polar = FALSE, color = "#101820", background_color = "#F2AA4C")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.