R/render.R

Defines functions vwPolygon vwPath

Documented in vwPath vwPolygon

################################################################################
## Functions for rendering vw* object outlines

vwPolygon <- function(x, y, id.lengths, gp, name) {
    polygonGrob(x, y, default.units="in",
                id.lengths=id.lengths, gp=gp, name=name)
}

vwPath <- function(rule="winding") {
    function(x, y, id.lengths, gp, name) {
        pathGrob(x, y, default.units="in",
                 id.lengths=id.lengths, rule=rule, gp=gp, name=name)
    }
}

Try the vwline package in your browser

Any scripts or data that you put into this service are public.

vwline documentation built on July 25, 2019, 9:03 a.m.