powered by
This is the main function of the package generativeimgR. It calls all the other function neccessary to produce multiple generative images at once.
generate_img(formula, nr_of_img, polar = FALSE, filetype = "png", ...)
the formula you want to use as a list
the number of images that should be created
logical should the plot have a polar coordinate system ("polar = TRUE") or a cartesian coordinate system ("polar = FALSE")
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_seeds
generate_filename generate the file names
generate_filename
check_logfile_existence create a log file, if there is none
check_logfile_existence
generate_logfile_entry generate the specific entry for the log file
generate_logfile_entry
generate_data generate the data depending on the formula
generate_data
generate_plot plot the data and save a png file
generate_plot
# NOT RUN { 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") # }
Run the code above in your browser using DataLab