text_legend | R Documentation |
Wrapper for legend function to quickly label a plot with text
text_legend(
legend,
x = "topleft",
bty = "n",
adj = c(0.1, 0),
cex = 1.3,
text.col = rgb(0, 0, 0.3, 0.4),
...
)
legend |
see |
x |
see |
bty |
see |
adj |
see |
cex |
see |
text.col |
see |
... |
pass additional arguments to see |
Nikolai Klibansky
x <- 1000
plot(rnorm(x),rnorm(x),col=rainbow(x),pch=16)
text_legend("random rainbow dots")
plot(rnorm(x),rnorm(x),col=heat.colors(x),pch=16)
text_legend("BAM!!",x="center",text.col=1,cex=4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.