mirror of
https://github.com/cutterkom/generativeart.git
synced 2026-02-13 01:20:48 +01:00
41 lines
982 B
R
41 lines
982 B
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/generate_plot.R
|
|
\name{generate_plot}
|
|
\alias{generate_plot}
|
|
\title{Generate one generative plot}
|
|
\usage{
|
|
generate_plot(
|
|
df,
|
|
file_name,
|
|
polar,
|
|
filetype,
|
|
color = "black",
|
|
background_color = "white"
|
|
)
|
|
}
|
|
\arguments{
|
|
\item{df}{the data frame created with `generate_data()`}
|
|
|
|
\item{file_name}{filetype of the final image. Default is `png`, for other options see the `devics` argument in `gggplot::gsave()`}
|
|
|
|
\item{polar}{do you want to use a polar coordinate system? The default is a cartesian coordinate system.}
|
|
|
|
\item{filetype}{set the file type for the image}
|
|
|
|
\item{color}{color of the points. default is black}
|
|
|
|
\item{background_color}{background color of the plaut. default is white.}
|
|
}
|
|
\value{
|
|
a png file
|
|
}
|
|
\description{
|
|
This function plots previously created data.
|
|
}
|
|
\examples{
|
|
generate_plot(df, file_name, polar = FALSE)
|
|
}
|
|
\seealso{
|
|
\code{\link{generate_data}} where the data is created
|
|
}
|