View source: R/black_figures.R
ninja | R Documentation |
Define the coordinates for drawing a ninja star (composed of two lucks)
ninja(size.x = 10, size.y = 15, shd = "black", lwd = 3, lty = 0)
s_ninja(size.x = 10, size.y = 15, shd = "black", lwd = 3, lty = 0)
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 |
Return the coordinates for drawing a ninja star
Return the coordinates for drawing a single ninja
s_ninja()
: Coordinates of a single ninja
Define the coordinates for drawing a single ninja star (composed of two lucks), to be used in shape()
# return the default coordinates for drawing a ninja
ninja()
# change the shade of the ninja
ninja(shd = "grey", lty = 0)
# return the default coordinates for drawing a single ninja
s_ninja()
# change the shade of the single ninja
s_ninja(shd = "grey", lty = 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.