Description Usage Arguments Aesthetics See Also Examples
View source: R/geom-bezier-line.R
The bezier curve 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 |
string, a function to generate values of t at which the curve will be evaluated for drawing. |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
geom_bezier_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(10),
y = rnorm(10)
)
ggplot(df, aes(x, y)) + geom_bezier_line()
ggplot(df[1:9, ], aes(x, y)) + geom_bezier_line(fill = "red", open = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.