get_values: Get values from an imported SVG file

View source: R/get_values.R

get_valuesR Documentation

Get values from an imported SVG file

Description

SVG files and the imported representation of class 'XMLsvg' are hierarchically organized in node sets and nodes. Each node is a graphical object such as a path, rectangle, or text. The values of these nodes can be queried using this function. A typical application for this function is to query the content of a text field. If you want to retrieve the (style) _attributes_ of a text field, use get_attributes() instead.

Usage

get_values(xml, node = NULL, node_attr = "label")

Arguments

xml

(XMLsvg) XMLsvg object obtained from read_svg()

node

(character) node(s) to be modified. Node names are searched using the 'node_attr' field

node_attr

(character) name of the attribute by which target nodes are filtered (default: "label")

Value

Returns a named list with values for the queried nodes (or NULL if no value exists)


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