image_rotate: Rotate image.

Description Usage Arguments Value Examples

View source: R/spirograph.R

Description

'image_rotate'

Usage

1
2
3
4
5
6
7
image_rotate(
  input,
  degrees = 90,
  radians = NA,
  openfile = TRUE,
  output = input
)

Arguments

input

File name of .svg file to input

degrees

Degrees to rotate image. Default is 90.

radians

radians to rotate image. If specified, radians will override degrees

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.

Value

output name

Examples

1
2
3
4
5
library(spiro)
spiro(fixed_radius = 3,
      cycling_radius = 1,
      file = "image_rotate.svg") %>%
    image_rotate(degrees = 90)

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