Learn R Programming

generativeart (version 1.0)

generate_plot: Generate one generative plot

Description

This function plots previously created data.

Usage

generate_plot(
  df,
  file_name,
  polar,
  filetype,
  color = "black",
  background_color = "white"
)

Arguments

df

the data frame created with `generate_data()`

file_name

filetype of the final image. Default is `png`, for other options see the `devics` argument in `gggplot::gsave()`

polar

do you want to use a polar coordinate system? The default is a cartesian coordinate system.

filetype

set the file type for the image

color

color of the points. default is black

background_color

background color of the plaut. default is white.

Value

a png file

See Also

generate_data where the data is created

Examples

Run this code
# NOT RUN {
generate_plot(df, file_name, polar = FALSE)
# }

Run the code above in your browser using DataLab