Add a method to the SVGElement class which creates a new child SVGElement of the specified type

add_method(method_name, element_name, args)

Arguments

method_name

name of method in SVGElement class

element_name

the name of the SVG element to add

args

character vector of argument names