labels_shadow.Rd
Plot labels (text) with a contrasting buffer to make them more visible
when located on a similar color background.
This function is the shadowtext()
function developed by Greg Snow.
Called by plot functions: plot_dec_grph
, plot_compar
labels_shadow(x, y = NULL, labels, col = "black", bg = "white", theta = seq(0, 2 * pi, length.out = 50), r = 0.1, cex = 1, ...)
x, y | Numeric vector of coordinates where the labels should be plotted.
Alternatively, a single argument |
---|---|
labels | Set of labels provided as a character vector. |
col, bg | Graphical parameters for the label color and background (buffer) color. |
theta | Angles for generating the buffer with possible anisotropy along one direction (default is isotropic) and controlling buffer smoothness (angular resolution). |
r | Thickness of the buffer relative to the size of the used font, by default 0.1. |
cex | Size of the label, by default 1. |
... | Further graphical parameter accepted by |
No return value. It creates a contrasting buffer to make labels more visible.
https://rdrr.io/cran/TeachingDemos/man/shadowtext.html