boxedText | R Documentation |
Adds a boxed text to a plot.
boxedText( x, y, text = "Hello \nWorld", x2 = NULL, y2 = NULL, maxlength = NULL, col = "yellow", border = "black", pos = NULL, font = 1, hspace = 1, vspace = 1.2, cex = 1, decollide = F, decollide.repetitions = 10, ... )
x |
Numeric value specifying the text's position on the x-axis. |
y |
Numeric value specifying the text's position on the y-axis. |
x2 |
Numeric value specifying the arrow's position on the x-axis. |
y2 |
Numeric value specifying the arrow's position on the y-axis. |
col |
Character value specifying the color of the border. Defaults to "black". |
pos |
Numeric value specifying the position of the arrow relative to the box (0=no arrow plotted, 1=down, 2=left, 3=up, 4=right). |
... |
Additional graphical parameters for text. |
txt |
Character value specifying the text to be plotted. |
Adds a boxed text to a plot.
plot(1:10,1:10);boxedText(7,2.5,text="This (3;3) is a remarkable point worth emphasizing",3,3,col="yellow",maxlength=20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.