View source: R/type_polypath.R
type_polypath | R Documentation |
Type function for plotting polygons.
Arguments are passed to polypath
.
type_polypath(rule = "winding")
rule |
character value specifying the path fill mode: either
|
# "polypath" type convenience character string
tinyplot(
c(.1, .1, .6, .6, NA, .4, .4, .9, .9),
c(.1, .6, .6, .1, NA, .4, .9, .9, .4),
type = "polypath", fill = "grey"
)
# Use `type_polypath()` to pass extra arguments for customization
tinyplot(
c(.1, .1, .6, .6, NA, .4, .4, .9, .9),
c(.1, .6, .6, .1, NA, .4, .9, .9, .4),
type = type_polypath(rule = "evenodd"), fill = "grey"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.