Create a label with background
bglabel(
x,
y,
text,
bg = "#cccccc99",
margin = 0.5,
border = NA,
pos = "center",
cex = 1,
...
)
numeric vectors (coordinates)
a character vector of labels
character vector; background color for the labels
numeric vector; margin (in percentage of a single character) for width and height around the labels
character vector; see rect
for details
character vector; position where labels should be placed, relative to the coordinates. Can be one of "topleft", "top", "topright", "left", "center", "right", "bottomleft", "bottom" and "bottomright".
numeric vector; cex to be used for drawing the text
any further parameters are passed to the text
function
Creates a label with a background, a little extra margin (if necessary) etc.