new_pvtri | R Documentation |
Proportional-vertex based triangle shapes are created by proportionally defining vertex locations within a bounding rectangle. These shapes are located in plotting regions using bounding rectangles; a concept used in defining function parameters. See the locating bounding rectangles section for details.
new_pvtri( jp, x, y, pvx, pvy, w = NA, h = NA, px = 0.5, py = 0.5, x2 = NA, y2 = NA, look = NULL, mod = NULL, region = ".", name = "." )
pvx, pvy |
(required) proportion vectors of length 3 indicating the proportional x and y locations of the three vertices of all triangles to be plotted. All values must be between 0 and 1, inclusive. See the the pvx and pvy arguments section. |
jp
with the addition of the specified proportional-based
triangle shape(s).
pvx
indicates, as a proportion,
how far across the bounding rectangle each of the three vertices of all
triangles are located (from left to right). pvy
indicates, as a
proportion, how far up the bounding rectangle each of the three vertices of
all triangles are located. For example:
Produces an upward isosceles triangle.
Produces a right triangle with the 90-degree angle located at the bottom left corner of the bounding rectangle.
Produces a rightward isosceles triangle.
Arguments x
, y
, px
,
py
, w
, h
x2
, and y2
are recycled.
Other new_shape:
new_isosceles()
,
new_right()
Other new_triangle:
new_isosceles()
,
new_right()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.