ground: Draw a ground

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

Description

Draw a ground

Usage

1
2
3
4
ground(x0, y0,
    length=0.04,
    col=par('col'),
    lwd=par('lwd'))

Arguments

x0

topx coordinate of ground symbol

y0

top y coordinate of ground symbol

length

length of ground symbol

col

colour

lwd

line width

Details

The coordinate system has both x and y ranging from 0 to 1.

Value

None.

Author(s)

Dan Kelley

See Also

The plot must first be set up with circuit.

Examples

1
2
3
4
5
6
library(circuit)
circuit()
resistor(0.1, 0.5, 0.3, 0.5)
capacitor(0.3, 0.3, 0.3, 0.5)
wire(0.3, 0.5, 0.5, 0.5)
ground(0.3, 0.3)

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