Learn R Programming

easySVG (version 0.1.0)

defs.svg: make SVG defs element

Description

make SVG defs element

Usage

defs.svg(defs.content = NULL)

Arguments

defs.content

a character or a list, group content

Value

the characher type of SVG element

Examples

Run this code
# NOT RUN {
defs.svg(defs.content = "<text x=\"10\" y=\"20\"> an SVG element </text>")
defs.content <- list(svg1 = "<text x=\"10\" y=\"30\"> an SVG element </text>",
                     svg2 = "<text x=\"10\" y=\"40\"> an SVG element </text>")
defs.svg(defs.content = defs.content)

# }

Run the code above in your browser using DataLab