Plot an Arrow
Plots an object of class
## S3 method for class 'onearrow': plot(x, \dots, add = FALSE, main = "", retract = 0.05, headfraction = 0.25, headangle = 12, headnick = 0.1, col.head = NA, lwd.head = lwd, lwd = 1, col = 1, zap = FALSE, zapfraction = 0.07, pch = 1, cex = 1, do.plot = TRUE, do.points = FALSE, show.all = !add)
- Object of class
"onearrow"to be plotted. This object is created by the command
- Additional graphics arguments passed to
segmentsto control the appearance of the line.
- Logical value indicating whether to add graphics to the
existing plot (
add=TRUE) or to start a new plot (
- Main title for the plot.
- Fraction of length of arrow to remove at each end.
- Length of arrow head as a fraction of overall length of arrow.
- Angle (in degrees) between the outer edge of the arrow head and the shaft of the arrow.
- Size of the nick in the trailing edge of the arrow head as a fraction of length of arrow head.
- Colour and line style of the filled arrow head.
- Colour and line style of the arrow shaft.
- Logical value indicating whether the arrow should include a Z-shaped (lightning-bolt) feature in the middle of the shaft.
- Size of Z-shaped deviation as a fraction of total arrow length.
- Plot character and character size for the two end points of the arrow,
- Logical. Whether to actually perform the plot.
- Logical. Whether to display the two end points of the arrow as well.
- Internal use only.
x should be an object of class
created by the command
- A window (class
"owin") enclosing the plotted graphics.
oa <- onearrow(cells[c(1, 42)]) plot(oa) plot(oa, zap=TRUE, do.points=TRUE, col.head="pink", col="red")
Looks like there are no examples yet.