Add rhombi on a plot and returns areas.
rhombi(x, y = x, ldg = 1, sdg = ldg, rot = 0, add = FALSE, ...)
x | a vector of x coordinates of the centers of the losange |
---|---|
y | a vector of y coordinates of the centers of the losange |
ldg | vector of length of the large diagonals. |
sdg | vector of length of the small diagonals. |
rot | rotation angles (in degree) of the rhombi. |
add | logical. If |
... | additional arguments to be passed to |
A vector including rhombi areas is returned if assigned.
The number of rhombus maximal is provided by the length of the largest
argument among x, y, ldg, sdg and rot. Other arguments are repeated with the
largest length as the desired one (see rep_len()
).
Additional arguments remain the same for every rhombus.