addShadowText: Add shadow text (a second color bordering the text) to a plot

Description Usage Arguments Details Value Note Author(s) References See Also Examples

Description

This is a usefule function to help text stand out on busy backgrounds like gene networks

Usage

1
2
addShadowText(x, y = NULL, labels, col = "white", bg = "black", 
theta = seq(pi/4, 2 * pi, length.out = 8), r = 0.1, ...)

Arguments

x

A numeric vector of x coordinates

y

A numeric vector of y coordinates

labels

A character vector to be plotted at the specified coordinates

col

The text color

bg

The color of the outline

theta

The number of shadows to plot

r

The radius for the shadows

...

Additional plotting arguments

Details

The function creates its effect by plotting theta shadows at r radius around the text to create the illusion of a text shadow

Value

Adds shadow text to plot

Note

This function was adapted by N. Ari Wijetunga for SMITE.

Author(s)

Greg.Snow <at> imail.org

References

http://article.gmane.org/gmane.comp.lang.r.general/147787

See Also

text, mtext

Examples

1
2
3
plot.new()

addShadowText(x = .5,y = .5,"TEST",col="white",bg="gray")

GreallyLab/SMITE documentation built on May 6, 2019, 6:30 p.m.