type_polygon {tinyplot} | R Documentation |
Polygon plot type
Description
Type function for plotting polygons.
Arguments are passed to polygon
.
Usage
type_polygon(density = NULL, angle = 45)
Arguments
density |
the density of shading lines, in lines per inch. The
default value of |
angle |
the slope of shading lines, given as an angle in degrees (counter-clockwise). |
Examples
# "polygon" type convenience character string
tinyplot(1:9, c(2,1,2,1,NA,2,1,2,1), type = "polygon")
# Use `type_polygon()` to pass extra arguments for customization
tinyplot(1:9, c(2,1,2,1,NA,2,1,2,1), type = type_polygon(density = c(10, 20)))
[Package tinyplot version 0.4.2 Index]