junction: Draw a junction

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

Description

Draw a junction

Usage

1
2
3
4
junction(x, y,
         col=par('col'),
         lwd=par('lwd'),
         cex=par('cex'))

Arguments

x

x coordinate of junction

y

y coordinate of junction

col

colour

lwd

line width

cex

size of points (ignored unless points is TRUE)

Details

End-point junctions can also be drawn with the points argument to e.g. resistor.

Value

None.

Author(s)

Dan Kelley

See Also

The plot must first be set up with circuit.

Examples

1
2
3
4
5
6
7
library(circuit)
circuit()
resistor(0.1, 0.5, 0.4, 0.5, label="10k")
capacitor(0.4, 0.2, 0.4, 0.5, label='10uF')
wire(0.4, 0.5, 0.7, 0.5)
ground(0.4, 0.2)
junction(0.4, 0.5)

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