read_svg: Read an 'svg()' graphic file

View source: R/read_svg.R

read_svgR Documentation

Read an 'svg()' graphic file

Description

SVG (standard vector graphic) files are structured text files in XML format (Extensible Markup Language). They contain descriptions of vector objects such as circles, rectangles, and paths. This function 'reads' an XML file by parsing it and stores it in an object of class 'XMLsvg'.

Usage

read_svg(file, ...)

Arguments

file

(character) path to '.svg' file

...

other arguments passed down to 'xmlParse'

Examples


# read an svg file
# SVG <- read_svg("example.svg")

# alternatively, simply load example shipped with package
#data(example_network)
#print(rounded_rect)
#summary(example_network)


m-jahn/fluctuator documentation built on Nov. 4, 2024, 9:35 p.m.