View source: R/margin_letter.R
margin_letter | R Documentation |
Useful for multi-graph figures (eg with mfrow)
margin_letter(
l = NULL,
pos = c("topleft", "topright", "bottomleft", "bottomright", "coords"),
cex = par("cex") * 2,
xdr = 1/10,
ydr = 1/10,
coords = c(0, 0),
...
)
l |
text |
pos |
location of the letter, use 'coords' for custom non automatic placement |
cex |
cex parameter |
xdr |
distance from the angle (x coordinates) as percentage of x range |
ydr |
distance from the angle (y coordinates) as percentage of x range |
coords |
c(x, y) vector of coordinates |
... |
further parameters passed to |
plot(rnorm(100))
margin_letter("A", "topleft")
margin_letter("B", "topright", xdr = 1/50) ## decrease distance from the angle, otherwise it's printed out of screen
margin_letter("C", "bottomleft")
margin_letter("D", "bottomright", xdr = 1/50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.