add_lines: Add color to lines

Description Usage Arguments Examples

View source: R/spirograph.R

Description

Add color to lines

Usage

1
2
3
4
5
6
7
8
add_lines(
  input,
  colors = "black",
  transparency = NA,
  line_width = 0.5,
  openfile = TRUE,
  output = input
)

Arguments

input

File name of .svg file to input

colors

Vector of background color

transparency

Transparency of colors. Ranges from 0 to 1. Default is NA (i.e., leave the colors as specified in the colors argument).

line_width

Width of lines. Default is 0.5.

openfile

Open file in default program for .svg format. Defaults to FALSE.

output

File name of .svg file to output. Default is to overwrite the input file. #' @return output name

Examples

1
2
3
4
5
6
7
8
9
library(spiro)
spiro(
  fixed_radius = 3,
  cycling_radius = 1,
  file = "add_lines.svg"
  ) %>%
  add_lines(
    colors = "firebrick",
    line_width = 3)

wjschne/spiro documentation built on Dec. 16, 2020, 6:48 p.m.