generate_img: Generate multiple generative images

Description Usage Arguments Value See Also Examples

View source: R/generate_img.R

Description

This is the main function of the package generativeimgR. It calls all the other function neccessary to produce multiple generative images at once.

Usage

1
generate_img(formula, nr_of_img, polar = FALSE, filetype = "png", ...)

Arguments

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

Value

as many png files as you net in "nr_of_img"

See Also

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

Examples

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")

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