Learn R Programming

matRiks (version 0.1.3)

up_petal: Define the coordinates of petals

Description

Define the coordinates for drawing the circle arches composing some petals

Usage

up_petal(lwd = 3, lty = 1)

down_petal(lwd = 3, lty = 1)

left_petal(lwd = 3, lty = 1)

right_petal(lwd = 3, lty = 1)

Value

Return the coordinates for drawing the circle arches composing an up petal

Return the coordinates for drawing the circle arches composing a down petal

Return the coordinates for drawing the circle arches composing a left petal

Return the coordinates for drawing the circle arches composing a right petal

Arguments

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)

Functions

  • down_petal(): Define the coordinates of a down petal

    Define the coordinates for drawing the circle arches composing a down petal

  • left_petal(): Define the coordinates of a left petal

    Define the coordinates for drawing the circle arches composing a left petal

  • right_petal(): Define the coordinates of a right petal

    Define the coordinates for drawing the circle arches composing a right petal

Examples

Run this code
# return the default coordinates for drawing the circle arches composing an up petal
up_petal()
# change the line type of the up petal
up_petal(lty = 3)
# return the default coordinates for drawing a down petal
down_petal()
# change the line type of the down petal
down_petal(lty = 3)
# return the default coordinates for drawing a left petal
left_petal()
# change the line type of the left petal
left_petal(lty = 3)
# return the default coordinates for drawing a right petal
right_petal()
# change the line type of the right petal
right_petal(lty = 3)

Run the code above in your browser using DataLab