draw_text: Create a text SVG Element

Description Usage Arguments

View source: R/draw.R

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
3
draw_text(text, x = 0L, y = 0L, fill, `font-size`, `font-family`,
          `font-weight`, `text-anchor`, 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.

fill

expression specifying the fill attribute.

'font-size'

expression specifying the font-size attribute.

'font-family'

expression specifying the font-family 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.

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 Dec. 8, 2020, 3:34 a.m.