label: Draw a label

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

Description

Draw a label

Usage

1
label(x0, y0, label, ...)

Arguments

x0

topx coordinate of label symbol

y0

top y coordinate of label symbol

label

label to draw (may be an expression)

...

other arguments, passed to text.

Details

This is a wrapper around a call to text, with the advantage being that some abbreviations are handled, e.g label="uF" will be shown with a mu symbol for the u, label="10kohm" will be typeset with an Omega symbol, etc.

Value

None.

Author(s)

Dan Kelley

See Also

The plot must first be set up with circuit.

Examples

1
2
3
library(circuit)
circuit()
label(0.1, 0.5, "Vin", pos=2)

dankelley/circuit documentation built on May 14, 2019, 4:09 p.m.