image_shift: shift image

Description Usage Arguments Value Examples

View source: R/spirograph.R

Description

shift image

Usage

1
image_shift(input, x = 0, y = 0, openfile = TRUE, output = input)

Arguments

input

File name of .svg file to input

x

Shift x. Can be positive or negative.

y

Shift y. Can be positive or negative.

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_shift.svg") %>%
  image_shift(x = 200, y = 200)

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