View source: R/lines_and_rectangles.R
generate_lines_and_rectangles | R Documentation |
Generate lines and rectangles
generate_lines_and_rectangles(
num_lines,
p_v_line,
max_line_size,
num_rect,
max_rect_size,
seed
)
num_lines |
an integer value >=0, the number of lines in the artwork; if unspecified, a value will be chosen randomly |
p_v_line |
a numeric value between 0 and 1, the probability that each line will be vertical as opposed to horizontal; if unspecified, a value will be chosen randomly |
max_line_size |
a numeric value between 0 and 1, the maximum size of each line; if unspecified, a value will be chosen randomly |
num_rect |
an integer value >=0, the number of rectangles in the artwork; if unspecified, a value will be chosen randomly |
max_rect_size |
a numberic value between 0 and 1, the maximum size of each rectangle; if unspecified, a value will be chosen randomly |
seed |
a numeric value, the seed to initialize psuedo-randomness |
a random work of art as a ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.