View source: R/new_triangles.R View source: R/new_triangle.R
new_isosceles | R Documentation |
isosceles triangle shapes are located in plotting regions using bounding rectangles; a concept used in defining function parameters. See the locating bounding rectangles section for details.
An isosceles triangles shapes is one or more isosceles triangles
defined using the same subset of locating parameters (x
, y
,
px
, py
, b
, h
, e
, be
, ee
,
au
, re
, and te
). Isosceles triangles are located in
plotting regions using bounding rectangles, a concept used in defining
function arguments. See the defining bounding rectangles section
for details.
new_isosceles( pj, x, y, b = NA, h = NA, e = NA, re = NA, te = NA, eb = NA, ee = NA, loc = "b", px = 0.5, py = 0.5, au = "r", region = ".", look = NULL, mod = NULL, name = "." ) new_isosceles( pj, x, y, b = NA, h = NA, e = NA, re = NA, te = NA, eb = NA, ee = NA, loc = "b", px = 0.5, py = 0.5, au = "r", region = ".", look = NULL, mod = NULL, name = "." )
pj |
an object of class |
x |
numeric vector giving horizontal location. When |
y |
numeric vector giving vertical location. When |
b |
|
h |
|
e |
|
re |
|
te |
|
ee |
|
loc |
character vector indicating where the base of the isosceles
triangles are located. |
px |
|
py |
|
au |
|
region |
either character scalar |
look |
an optional list containing up to four lists specifying looks to
apply to the shape. See the using |
mod |
an optional list containing up to four lists specifying
modifications to apply to the shape. See the using |
name |
character scalar indicating a name for the shape. The special
value |
s |
(optional) positive numeric vector indicating non-base side lengths. |
sb, ss |
(optional) positive numeric vector indicating, respectively, the angles between (non-base side) and base side vs. angles between the two equal-length non-base sides. |
be |
|
jp
with the addition of the specified isosceles-triangle
shape(s).
pj
with the addition of the defined isosceles-triangles.
h
) is calculated as the perpendicular
distance from the vertex between non-base sides to the base side. s
is defined as the length of the two equivalent-length non-base sides.
Bounding rectangles can be located in
a number of ways. The following shows valid combination of non-NA
locating arguments:
(x + px) + b + (y + py) + h
(x-anchor) + base length + (y-anchor) + height
(x + px) + b + (y + px) + s
(x-anchor) + base length + (y-anchor) + side length
(x + px) + b + (y + px) + sb
(x-anchor) + base length + (y-anchor) + base/side angle
(x + px) + b + (y + px) + ss
(x-anchor) + base length + (y-anchor) + side-side angle
(x + px) + b + y + y2
(x-anchor) + base length + bottom + top
x + x2 + (y + py) + h
left + right + (y-anchor) + height
x + x2 + y + y2
left + right + bottom + top
Arguments x
, y
, loc
,
px
, py
, b
, h
, s
, ab
, as
,
au
, x2
, and y2
are recycled.
The argument set {x, y, b, h, e, re, te,
be, ee, au, px, py, loc}
is recycled.
h
and s
argumentsh
) is calculated as the
perpendicular distance from the vertex between non-base sides to the base
side. s
is defined as the length of the two equivalent-length
non-base sides.
Bounding rectangles can be located in
a number of ways. The following shows valid combination of non-NA
locating arguments:
(x + px) + b + (y + py) + h
(x-anchor) + base + (y-anchor) + height
(x + px) + b + (y + px) + s
(x-anchor) + base + (y-anchor) + side length
(x + px) + b + (y + px) + sb
(x-anchor) + base + (y-anchor) + base/side angle
(x + px) + b + (y + px) + ss
(x-anchor) + base + (y-anchor) + side-side angle
(x + px) + b + y + te
(x-anchor) + base + bottom + top
x + re + (y + py) + h
left + right + (y-anchor) + height
x + re + y + te
left + right + bottom + top
Other new_shape:
new_pvtri()
,
new_right()
Other new_triangle:
new_pvtri()
,
new_right()
Other new_triangles:
new_rights()
,
new_triangles()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.