shadowtext: Add Shadowed Text to a Plot

Description Usage Arguments Details Author(s) See Also

Description

Add text with a shadowed background to a plot.

Usage

1
2
shadowtext(x, y = NULL, labels, col = "white", bg = "grey25", 
           theta = (1:8/4)*pi, r1 = 0.06, r2 = 0.04, ...)

Arguments

x,y

numeric vectors of coordinates where the text labels should be written

labels

a character vector or expression specifying the text to be written

col

foreground text colour

bg

background text colour

theta

position angle offsets for the background shading

r1

shadow width

r2

shadow height

...

additional arguments to be passed to 'text'

Details

'shadowtext' works by plotting the text initially at positions slightly offset from the central position in a darker background colour, and then over-plots the desired text (twice, to avoid anti-aliasing effects).

Author(s)

Lee Kelvin <lee.kelvin@uibk.ac.at>

See Also

The astronomy package: astro.


taranu/astro documentation built on May 23, 2019, 7:36 a.m.