text: Text

Description Usage Arguments Value Examples

Description

Interface to grpahics::text allowing more flexibility. The character string method allows text to be placed in defined regions of the plotting surface in a way similar to that allowed by graphics::legend

Usage

1
2
3
4
5
6
7
text(x, ...)

## S4 method for signature 'xy'
text(x, ...)

## S4 method for signature 'character'
text(x, labels, ..., adj, pos, guard = 0.0125)

Arguments

x

main argument: either numeric, of class "xy", or a character string

...
labels

text string(s) to be used as labels, ax for graphics::text

adj, pos

as for graphics::text

guard

fraction of the axis length left clear for the character case of x

Value

as for graphics::text

Examples

1
2
3
plot(1:10)
text("top", "(a)", font = 2, family = "serif", cex = 1.5)
text("top left", c("Some text", "to go in", "this corner."), family = "mono")

BillVenables/WWRGraphics documentation built on Feb. 1, 2021, 12:13 p.m.