View source: R/ggplot-helper.R
element_curve | R Documentation |
Draw curve.
element_curve(
colour = NULL,
linewidth = NULL,
linetype = NULL,
lineend = NULL,
color = NULL,
curvature = NULL,
angle = NULL,
ncp = NULL,
shape = NULL,
arrow = NULL,
arrow.fill = NULL,
inherit.blank = FALSE
)
colour , color |
Line/border colour. Color is an alias for colour. |
linewidth |
Line/border size in mm. |
linetype |
Line type. An integer (0:8), a name (blank, solid, dashed, dotted, dotdash, longdash, twodash), or a string with an even number (up to eight) of hexadecimal digits which give the lengths in consecutive positions in the string. |
lineend |
Line end Line end style (round, butt, square) |
curvature |
A numeric value giving the amount of curvature. Negative values produce left-hand curves, positive values produce right-hand curves, and zero produces a straight line. |
angle |
A numeric value between 0 and 180, giving an amount to skew the control points of the curve. Values less than 90 skew the curve towards the start point and values greater than 90 skew the curve towards the end point. |
ncp |
The number of control points used to draw the curve. More control points creates a smoother curve. |
shape |
A numeric vector of values between -1 and 1, which
control the shape of the curve relative to its control points.
See |
arrow |
A list describing arrow heads to place at either end
of the curve, as produced by the |
arrow.fill |
Fill colour for arrows. |
inherit.blank |
Should this element inherit the existence of an
|
A element_curve
object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.