View source: R/other_figures.R
malta | R Documentation |
Define the coordinates for drawing a Malta cross
malta(size.x = 10, size.y = size.x, pos.x = 0, shd = NA, lwd = 3, lty = 1)
s_malta(size.x = 10, pos.x = 0, shd = NA, lwd = 3, lty = 1)
size.x |
numeric, define the semi-major axis of the ellipse within which the figure is inscribed. Default is 10 |
size.y |
numeric, define the semi-minor axis of the ellipse within which the figure is inscribed. Default is size.x |
pos.x |
numeric, define the position on the x axis. Default is 0 |
shd |
character, define the color of the figure. Default is NA, which results in a transparent figure |
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 Malta cross
Return the coordinates for drawing a single Malta cross
s_malta()
: Coordinates of a single Malta cross
Define the coordinates for drawing a single Malta cross, to be used in shape()
# return the default coordinates for drawing a Malta cross
malta()
# change the coordinates for drawing a smaller Malta cross
malta(size.x = 5)
# return the default coordinates for drawing a single Malta cross
s_malta()
# change the coordinates for drawing a smaller single Malta cross
s_malta(size.x = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.