Description Usage Arguments Aesthetics See Also Examples
View source: R/geom-quad-line.R
The quadratic bezier spline layer function is used to draw bezier curve.
1 2 3 4 5 6 7 8 9 10 11 |
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
stat |
The statistical transformation to use on the data for this layer, as a string. |
position |
Position adjustment, either as a string, or the result of a call to a position adjustment function. |
... |
Other arguments passed on to |
step_fn |
a function (defaults to |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
geom_quad_line()
understands the following aesthetics (required
aesthetics are in bold):
x
y
alpha
colour
fill
linetype
size
1 2 3 4 5 6 | df <- data.frame(
x = rnorm(9),
y = rnorm(9)
)
ggplot(df, aes(x, y)) + geom_quad_line()
ggplot(df[1:8, ], aes(x, y)) + geom_quad_line(fill = "red", open = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.