Learn R Programming

matRiks (version 0.1.3)

biscuit: 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 )

Value

Return the coordinates for drawing a biscuit

Return the coordinates for drawing a single biscuit

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

Functions

  • s_biscuit(): Coordinates of a single biscuit

    Define the coordinates for drawing a single biscuit (composed of two hexagons), to be used in shape()

Examples

Run this code
# 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)

Run the code above in your browser using DataLab