kyle_textbox | R Documentation |
Nice looking annotations using 'ggtext“
kyle_textbox(
label,
x,
y,
size = 10,
width = unit(0.2, "npc"),
text.color = tailwind_color("zinc-800"),
fill = "white",
box.color = tailwind_color("zinc-300"),
box.size = unit(0.5, "pt"),
box.r = unit(4, "pt"),
box.padding = unit(c(6, 6, 6, 6), "pt"),
hjust = 0,
vjust = 1
)
label |
Text to be displayed |
x |
x coordinate of the label |
y |
y coordinate of the label |
size |
Text size in points |
width |
width of textbox |
text.color |
color of text |
fill |
background color |
hjust |
horizontal justification |
vjust |
vertical justification |
border.color |
color of border |
linewidth |
width of border |
label.r |
radius of rounded corners |
label.padding |
padding around the label |
A ggplot layer object with a textbox annotation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.