For 2D layouts, draws vertices and edges using base graphics.
For 3D layouts, the behaviour depends on the projection argument:
"rgl"(default)Opens an interactive rgl scene when that package is installed. Falls back to
"ortho"with a warning if rgl is not available."ortho"Projects the 3D coordinates to 2D with
project.3dand draws them with base graphics, giving a static figure suitable for vignettes and non-interactive reports.
Arguments
- x
Numeric coordinate matrix with at least two columns.
- ...
Additional parameters passed to the underlying
plot()call for 2D layouts or the rgl 3D plotting call.- edges
Optional two-column matrix of edges (1-based vertex ids).
- projection
Character string controlling how 3D layouts are displayed:
"rgl"(default) for an interactive rgl widget, or"ortho"for a static orthographic projection via base graphics. Ignored for 2D layouts.- azimuth
Rotation around the vertical axis in degrees. Only used when
projection = "ortho". Default 35.- elevation
Rotation around the horizontal axis in degrees. Only used when
projection = "ortho". Default 22.- vertex.col
Colour(s) for the vertices. Recycled to match the number of vertices. Default
"black".- edge.col
Colour for the edges. Default
"gray70".
