dice: Coordinates of a dice with four dots
Description
Define the coordinates for drawing four dots placed in the vertices of a square
Usage
dice(pos.x = 13, pos.y = 13, shd = "black", lwd = 3, lty = 1)cross_dice(shd = "black", lwd = 3, lty = 1)
Value
Return the coordinates for drawing a dice with 4 dots
The coordinates for drawing a dice with 4 dots
Arguments
- pos.x
numeric, position on the x axis. Default is 13 (-13)
- pos.y
numeric, position on the y axis. Default is 13 (-13)
- 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 1 (solid line).
Examples
Run this code# return the default coordinates for drawing a dot
dice()
# change the shade of the dice
dice(shd = "grey")
# return the default coordinates for drawing a dot
cross_dice()
# change the shade of the cross dice
cross_dice(shd = "grey")
Run the code above in your browser using DataLab