addShadowText {SMITE} | R Documentation

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

### Description

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

### Usage

    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

    plot.new()

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

[Package SMITE version 1.8.0 Index]