xy_text | R Documentation |
Add text to a plot at specific relative coordinates, e.g. 50%, 50%.
xy_text(x, y, labels, ...)
x |
numeric |
y |
numeric |
labels |
string |
... |
arguments passed to |
See text
.
A vector of coordinates, returned invisibly.
Enrico Schumann
text
plot(0:10, 0:10)
lines(5,5, col = "blue", pch = 19, type = "p")
xy_text(0.5,0.5, "The Centre", pos = 1)
xy_text(0.5,0.5, "The Centre", pos = 2)
xy_text(0.5,0.5, "The Centre", pos = 3)
xy_text(0.5,0.5, "The Centre", pos = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.