cross | R Documentation |
Define the coordinates for drawing a cross
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)
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 |
Return the coordinates for drawing a cross
Return the coordinates for drawing an X
X()
: Coordinates of an X
Define the coordinates for drawing an X
# 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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.