This stat creates arrow shapes in a ggplot.
stat_arrow(
mapping = NULL,
data = NULL,
geom = "polygon",
position = "identity",
na.rm = FALSE,
show.legend = NA,
inherit.aes = TRUE,
...,
bp = 6000,
arrowhead_size = 8
)
The aesthetic mapping, usually constructed with aes().
The dataset to be used in the layer.
The geometric object to use for the layer, default is "polygon".
Position adjustment, default is "identity".
Should missing values be removed?
Logical. Should this layer be included in the legends?
Should inherit aesthetics from the parent plot?
Other arguments passed to layer().
The base parameter for the arrow shape.
The size of the arrowhead.
A ggplot layer with arrow shapes.
Used for drawing features for a plasmid that work in both cartesian and polad coordinate systems.
The bp
parameter determines the base parameter of the arrow shape.
The arrowhead_size
parameter controls the size of the arrowhead.