tspan: Create a tspan SVG Element

Description Usage Arguments

View source: R/draw.R

Description

Control properties and coordinates of parts of a <text> SVG element by addition of a <tspan> element.

Usage

1
2
tspan(text, x, y, dx, dy, `font-weight`, `text-anchor`,
      fill, class, id)

Arguments

text

character, which is the text held by the <tspan> SVG element.

x

numeric specifying the position on the x-axis.

y

numeric specifying the position on the y-axis.

dx, dy

expressions specifying a shift along the corresponding axis.

'font-weight'

expression, which adds a font-weight attribute to the <tspan> Element.

'text-anchor'

expression specifying the text-anchor attribute. The attribute is applied to each single text chunk within a given <text> element. Possible values are: start, middle, end and inherit.

fill

expression to add a fill attribute.

class

expression to add a class attribute.

id

expression, which controls the id attribute.


be-pr/drawsvg documentation built on Dec. 8, 2020, 3:34 a.m.