generate_data: Generate data

Description Usage Arguments Value See Also Examples

View source: R/generate_data.R

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

1

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

1
2
3
4
5
6
7
8
9
## 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))
 )

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