| connectiongraph {heR.Simulation} | R Documentation |
Plot the connections in a multi-room dwelling as a network of nodes (i.e. rooms, the outdoors, and the central ventilation system) – with line segments connecting nodes between which air is allowed to move.
connectiongraph(conn, by = "lwd", labels = NULL, node.cols = NULL,
circle.max = 0.12, lwd.min = 2, labels.out = TRUE,
label.cex = 2, ...)
conn |
a connections object containing information on house zone connections. See sim.connections. |
by |
a character vector containing lwd if connection levels are distinguished by different line (edge) widths, or col if they are distinguished by different colors |
labels |
text labels to be drawn at each node |
node.cols |
colors for nodes |
circle.max |
the maximum radius of node circles |
lwd.min |
the minimum thickness of edge line widths |
labels.out |
logical, whether to draw labels just outside each node or not |
label.cex |
the magnification level for text labels |
... |
addition arguments to the gplot2 function |
Requires a connections object as input, which is produced by
the sim.connections function. See that function for
information on the specification of house connections.
Connection levels are depicted by segments of different thickness
or by different colors depending on the value of by, i.e.,
if it contains lwd or col.
Invoked for the purpose of plotting a directed graph
Neil Klepeis
See sim.connections for simulating house connections and the connections object format.
See flowgraph for plotting graphical representations of the actual flows between rooms.
The function gplot2 is the general directed graph plotter used by the current function.