generate_plot: Generate one generative plot

Description Usage Arguments Value See Also Examples

View source: R/generate_plot.R

Description

This function plots previously created data.

Usage

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

1
generate_plot(df, file_name, polar = FALSE)

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