vwPath | R Documentation |
Functions that can be used to render a variable-width line.
All variable-width-line functions generate a polygon or path
to represent the variable-width line and they have a
render
argument that specifies the rendering function.
These two functions provide the default rendering behaviour.
vwPath(rule = "winding")
vwPolygon(x, y, id.lengths, gp, name)
rule |
The fill rule for rendering a variable-width line as a path. |
x , y , id.lengths , gp , name |
Arguments provided by the calling function when rendering occurs. |
These functions are not called directly; they are provided as arguments to variable-width-line functions (which then call them internally to render a variable-width line).
These functions are used for their side-effect, which is to draw on the current graphics device.
Paul Murrel
grid.curve
,
grid.vwline
,
grid.vwcurve
,
grid.brushXspline
,
grid.vwXspline
grid.newpage()
x <- c(.2, .4, .2, .4)
y <- c(.2, .4, .4, .2)
grid.vwXspline(x, y, c(0, .1, .1, 0))
x <- c(.2, .4, .2, .4) + .4
y <- c(.2, .4, .4, .2)
grid.vwXspline(x, y, c(0, .1, .1, 0), render=vwPath("evenodd"))
x <- c(.2, .4, .2, .4)
y <- c(.2, .4, .4, .2) + .4
grid.brushXspline(verticalBrush, x, y, c(0, .02, .02, 0))
x <- c(.2, .4, .2, .4) + .4
y <- c(.2, .4, .4, .2) + .4
grid.brushXspline(verticalBrush, x, y, c(0, .02, .02, 0),
render=vwPolygon)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.