cross {matRiks} | R Documentation |
Coordinates of a cross
Description
Define the coordinates for drawing a cross
Usage
cross(
size.x = sqrt(square()$size.x[[1]]^2/2),
size.y = size.x,
lwd = 3,
lty = 1
)
X(size.x = sqrt(square()$size.x[[1]]^2/2), size.y = size.x, lwd = 3, lty = 1)
Arguments
size.x |
numeric, define the semi-major axis of the ellipse within which the figure is inscribed. Default is sqrt(square()$ size.x[[1]]^2 /2) |
size.y |
numeric, define the semi-minor axis of the ellipse within which the figure is inscribed. Default is size.x. |
lwd |
integer, define the line width of the figure. Default is 3 |
lty |
integer, define the line type of the figure, default is 1 (solid line |
Value
Return the coordinates for drawing a cross
Return the coordinates for drawing an X
Functions
-
X()
: Coordinates of an XDefine the coordinates for drawing an X
Examples
# default coordinates of an horizontal line
cross()
# draw a vertical line with different lty
draw(cross(lty = 2))
# default coordinates of an X
X()
# draw an X with different lty
draw(X(lty = 2))
[Package matRiks version 0.1.3 Index]