View source: R/generate_data.R
generate_data | R Documentation |
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'.
generate_data(formula)
formula |
a list that contains formulas for transforming the x- and y-values. |
data frame
generate_plot
the returned data frame is the input to generate the plot
## 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)) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.