Learn R Programming

generativeart (version 1.0)

generate_data: 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

Run this code
# NOT RUN {
generate_data(formula)
# }
# 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))
 )
# }

Run the code above in your browser using DataLab