star {matRiks} | R Documentation |
Coordinates of a star
Description
Define the coordinates for drawing a star (composed of 4 luck)
Usage
star(size.x = 10, size.y = 15, shd = "black", lwd = 3, lty = 0)
s_star(size.x = 10, size.y = 15, shd = "black", lwd = 3, lty = 0)
Arguments
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 15 |
shd |
character, define the shading of the figure. Default is black |
lwd |
integer, define the line width of the figure. Default is 3 |
lty |
integer, define the line type of the figure, default is 0 |
Value
Return the coordinates for drawing star composed of four lucks
Return the coordinates for drawing a single star composed of four lucks
Functions
-
s_star()
: Coordinates of a single starDefine the coordinates for drawing a single star (composed of 4 luck), to be used in shape()
Examples
# get the coordinates of a star composed of four luck
star()
# change the color of the star
draw(star(shd = "grey", lty = 0))
# get the coordinates of a single star composed of four luck
s_star()
# change the color of the star
draw(s_star(shd = "grey", lty = 0))
[Package matRiks version 0.1.3 Index]