generate_img: Generate multiple generative images

View source: R/generate_img.R

generate_imgR Documentation

Generate multiple generative images

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

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

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

cutterkom/generativeart documentation built on May 2, 2022, 10:11 p.m.