generate_data: Generate data

View source: R/generate_data.R

generate_dataR Documentation

Generate data

Description

The generative images are based on values in a dataframe. This function creates the data by transforming the base values 'seq(-pi, pi)' with a 'formula'.

Usage

generate_data(formula)

Arguments

formula

a list that contains formulas for transforming the x- and y-values.

Value

data frame

See Also

generate_plot the returned data frame is the input to generate the plot

Examples

## Not run: 
generate_data(formula)

## End(Not run)
# an example for a formula:
formula <- list(
  x = quote(runif(1, -1, 1) * pi_x^2 -sin(pi_y^2)),
  y = quote(runif(1, -1, 1) * pi_y^3-cos(pi_x^2))
 )

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