biscuit {matRiks}R Documentation

Coordinates of a biscuit

Description

Define the coordinates for drawing a biscuit (composed of two hexagons)

Usage

biscuit(size.x = 10, size.y = size.x, shd = "black", lwd = 3, lty = 0)

s_biscuit(
  pos.x = 0,
  pos.y = 0,
  size.x = 10,
  size.y = size.x,
  shd = "black",
  lty = 1,
  lwd = 3
)

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 size.x

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

pos.x

numeric, position on the x axis. Default is 0

pos.y

numeric, position the y axis, Default is 0

Value

Return the coordinates for drawing a biscuit

Return the coordinates for drawing a single biscuit

Functions

Examples

# return the default coordinates for drawing a biscuit
biscuit()
# change the shade of the biscuit
biscuit(shd = "grey", lty = 0)
# return the default coordinates for drawing a single biscuit
s_biscuit()
# change the shade of the single biscuit
biscuit(shd = "grey", lty = 0)

[Package matRiks version 0.1.3 Index]