draw_text: Create a text SVG Element

Description Usage Arguments

Description

Define an SVG graphics element consisting of text. Since the text rendered like any other SVG element, it is accessible to graphical manipulations.

Usage

1
2
draw_text(text, x = 0L, y = 0L, `font-size`, `font-weight`,
          `text-anchor`, fill, transform, class, id, visibility, sep = "")

Arguments

text

character specifying the text rendered by the element.

x

numeric indicating the position on the x-axis.

y

numeric indicating the position on the y-axis.

'font-size'

expression specifying the font-size attribute.

'font-weight'

expression specifying the font-weight attribute.

'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 specifying the fill attribute.

transform

expression specifying the transform function.

class

expression specifying the class attribute.

id

expression specifying the id attribute.

visibility

expression specifying the visibility attribute.

sep

character, see \link{paste}.


be-pr/drawsvg documentation built on May 31, 2019, 12:41 a.m.