addTextBox | R Documentation |
Add a box with a text inside
addTextBox(
xLimits,
yLimits,
text,
border = NULL,
col = "white",
lty = par("lty"),
...
)
xLimits |
x-Axis limits for box. |
yLimits |
y-Axis limits for box. |
text |
A character or expression vector specifying the text to be written. |
border |
the color to draw the border. The default, NULL, means to use par("fg"). Use border = NA to omit borders. See Details. |
col |
The color for filling the box polygon. |
lty |
The line type to be used, as in par. |
... |
Extra arguments passed from text function. |
For extra details about border
, col
and lty
, check the description of polygon.
plot(1, 1, pch = NA)
addTextBox(xLimits = c(0.9, 1.1), yLimits = c(0.9, 1.1),
text = "Hello World!", col = "indianred1", font = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.