Scale image

image_scale(input, scale = 1, openfile = TRUE, output = input)

Arguments

input

File name of .svg file to input

scale

Ratio by which to scale the image

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

.old_wd <- setwd(tempdir()) library(spiro) spiro(fixed_radius = 3, cycling_radius = 1, file = "image_scale") %>% image_scale(scale = 0.5) setwd(.old_wd)