thlAnnotate | R Documentation |
Add annotations to the plot
thlAnnotate( type = c("box", "label"), x, y, xend = x, yend = y, label, arrow.size = 10, text.size = 16, hjust = 0.5, style = c("white", "dark"), fill = TRUE, boldFont = TRUE, capitalized = FALSE, box.size = 0.4 )
type |
Type of annotation wanted: "box" for a text box or "label" for text |
x |
x-axis location for annotation |
y |
y-axis location for annotation |
xend |
location on the x-axis for the tip of the arrow, defaults to x |
yend |
location on the x-axis for the tip of the arrow, defaults to y |
label |
text to be annotated |
arrow.size |
size of the arrow head in PostScript points |
text.size |
size of text head in PostScript points |
hjust |
horizontal justification of the text, 0 = left justified, 0 = right justified. Defaults to 0.5. |
style |
color style of the annotation ("white" or "dark") |
fill |
Fill the background of the annotation with color? Defaults to TRUE |
boldFont |
set TRUE (default) for bolded font |
capitalized |
set TRUE for upper case letters, default is FALSE |
box.size |
unused |
Salla Toikkanen, Tarja Palosaari, Petteri Mäntymaa
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.