png2svg: Convert png to svg

Description Usage Arguments Details Value Examples

Description

Convert png to svg

Usage

1
png2svg(png_path, svg_path, width = 800, height = 800)

Arguments

png_path

path to the png file,character.

svg_path

out path of the svg file, character.

width

numeric, e.g: 200

height

numeric, e.g: 200

Details

The quality of svg file depends on the png file.

Value

a svg file

Examples

1
2
3
4
5
png_path <- system.file("img", "Rlogo.png", package="png")
svg_path <- tempfile(fileext = ".svg")
png2svg(png_path, svg_path)
file.show(svg_path)
png2svg(png_path, svg_path, 200, 200)

BruceZhaoR/mypkg documentation built on May 14, 2019, 6:04 a.m.