circuit: Initialize a circuit plot

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

Description

Initialize a circuit plot

Usage

1
circuit(xlim=c(0,1), ylim=c(0, 1), axes=FALSE, mar=rep(2, 4))

Arguments

xlim

limits of x axis

ylim

limits of y axis

axes

draw a grid and axes

mar

margins used in par(mar)

Details

Initializes a circuit diagram, optionally drawing axes to help in the planning of component placement.

Value

None.

Author(s)

Dan Kelley

See Also

Draw capacitors with capacitor, resistors with resistor, wires with wire, and grounds with ground.

Examples

1
2
3
4
library(circuit)
circuit()
resistor(0.1, 0.5, 0.4, 0.5, label="10k")
capacitor(0.4, 0.2, 0.7, 0.2, label="10mF")

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