Description Usage Arguments Details Value Author(s) Examples

Draw a Bezier curve or Bezier spline (multiple Bezier curves strung together).

1 2 3 | ```
grid.Bezier(...)
BezierGrob(x, y, default.units="npc",
open=TRUE, stepFn=nSteps(100), gp=gpar(), name=NULL)
``` |

`x, y` |
Locations of control points. There should be four,
or seven (or six if not |

`default.units` |
The coordinate system to use if control point locations are just numeric. |

`open` |
Whether to reuse the first control point as the last control point. If closed, the shape may also be filled. |

`stepFn` |
A function to generate values of |

`gp` |
A grid |

`name` |
A name for the grob that is generated. |

`...` |
Arguments passed from |

This function will produce a nicer result than the
`grid.bezier`

function from grid
(because the latter is just an approximation using X-splines).
This function also supports Bezier splines.

`BezierGrob`

produces a `"BezierGrob"`

object.

Paul Murrell

1 | ```
grid.Bezier(c(.2, .2, .8, .8), c(.2, .8, .8, .2))
``` |

```
Loading required package: grid
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.