Description Usage Arguments Value Examples
This function can generate a text form SVG element The SVG <text> element defines a graphics element consisting of text. It's possible to apply a gradient, pattern, clipping path, mask, or filter to <text>, just like any other SVG graphics element.
1 2 3 4 | get.text.svg(x = NULL, y = NULL, text.content = "", fill, stroke,
stroke.width, font.family, font.size, font.weight, font.style,
text.decoration, word.spacing, letter.spacing, text.anchor, rotate, text.path,
style.sheet = NULL)
|
x |
a number, x coordinate information |
y |
a number, y corrdinate information |
text.content |
a character, text content |
fill |
a character, color of the text, eg. "#000000"(default), "red" |
stroke |
a characher, color of the rect text, eg. "#000000"(default), "red" |
stroke.width |
a number, stroke width of the rect text, default: 1 |
font.family |
a character, font family of text, eg. "Arial" |
font.size |
a number, font size of text, default: 8 |
font.weight |
a character, font weight of text, eg. "normal"(default), "bold" |
font.style |
a character, font style of text, eg. "normal"(default), "italic" |
text.decoration |
a character, text decoration, eg. "none"(default), "underline", "overline", "line-through" |
word.spacing |
a number or character, default: "normal" |
letter.spacing |
a number or character, defailt: "normal" |
text.anchor |
a character, eg. "start"(default), "middle", "end" |
rotate |
a number, rotation angle of text |
text.path |
a character, fit text path |
style.sheet |
a vector or a chatacter, other style of the text, eg. "stroke-linecap: round" |
the characher type of SVG element
1 2 3 | get.text.svg(x = 10, y = 20, text.content = "Hello Word", fill = "blue")
get.text.svg(x = 10, y = 20, text.content = "Hello Word", fill = "blue",
rotate = 90, font.family = "Helvetica")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.