Learn R Programming

svgedit (version 1.0.0)

insert_svg: Add an element to an SVG document, replacing a target element

Description

Add an element to an SVG document, replacing a target element

Usage

insert_svg(doc, label, insert_file, dpi = 150)

Value

The modified xml2 SVG document (doc) with the svg file added and the target removed

Arguments

doc

An xml2 SVG document

label

The label of the target element to be replaced

insert_file

Path to the SVG file to be inserted

dpi

The resolution to use when interpreting pixel units