use.svg: use svg

Description Usage Arguments Value Examples

Description

The <use> element takes nodes from within the SVG document, and duplicates them somewhere else.

Usage

1
2
use.svg(id = NULL, x = NULL, y = NULL, scale, rotate, translate, skewX,
  skewY, style.sheet = NULL, transform.sheet = NULL)

Arguments

id

a character, target of the link

x

a number, x transform coordinate

y

a number, y transform coordinate

scale

a number. transform scale of the object

rotate

a vector, rotation of the object

translate

a vector, translate of the object

skewX

a number

skewY

a number

style.sheet

a vector or a chatacter, other style of the link, eg. "stroke-linecap: round"

transform.sheet

a vector or a chatacter, other transform of the link,

Value

the characher type of svg element

Examples

1
2
use.svg(id = "target", x = 100, y = 200)
use.svg(id = "target", x = 100, y = 200, rotate = c(90, 100, 200))

ytdai/easySVG documentation built on May 29, 2019, 12:18 p.m.