View source: R/other_figures.R
maxi | R Documentation |
Define the coordinates for drawing a maxi (i.e., a cross composed of four lucks)
maxi(size.x = 8, size.y = 4, pos.x = 0, shd = NA, lty = 1, lwd = 3)
s_maxi(size.x = 8, size.y = 4, pos.x = 0, shd = NA, lty = 1, lwd = 3)
size.x |
numeric, define the semi-major axis of the ellipse within which the figure is inscribed. Default is 8 |
size.y |
numeric, define the semi-minor axis of the ellipse within which the figure is inscribed. Default is 4 |
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 |
lty |
integer, define the line type of the figure, default is 1 (solid line) |
lwd |
integer, define the line width of the figure. Default is 3 |
Return the coordinates for drawing a maxi
Return the coordinates for drawing a maxi
s_maxi()
: Coordinates of a single maxi
Define the coordinates for drawing a single maxi (i.e., a cross composed of four lucks), to be used in shape()
# return the default coordinates for drawing a maxi
maxi()
# change the coordinates for drawing a smaller maxi
maxi(size.x = 5)
# return the default coordinates for drawing a single maxi
s_maxi()
# change the coordinates for drawing a smaller single maxi
s_maxi(size.x = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.