View source: R/geom_richtext2.R
richtextGrob | R Documentation |
richtextGrob
richtextGrob(
label,
x = 0,
y = 1,
hjust = 0,
vjust = 1,
mar = 0.02,
padding = unit(c(1, 1, 1, 1) * 0, "pt"),
lineheight = 1.5,
fontsize = 12,
fontface = 1,
family = "Times",
color = "black",
...
)
x , y |
Unit objects specifying the location of the reference point. |
hjust , vjust |
Numerical values specifying the justification
of the text boxes relative to |
... |
other parameters to |
text <- c(
"Some text **in bold.**",
"Linebreaks<br>Linebreaks<br>Linebreaks",
"*x*<sup>2</sup> + 5*x* + *C*<sub>*i*</sub>",
"Some <span style='color:blue'>blue text **in bold.**</span><br>And
*italics text.*<br>And some <span style='font-size:18pt; color:black'>
large</span> text."
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.