Learn R Programming

matRiks (version 0.1.3)

vertical_eight: Eight-shaped figures

Description

Define the coordinates for drawing eight-shaped figures vertical_eight defines the coordinates for drawing a vertical eight-shaped figures.

Usage

vertical_eight(lwd = 3, lty = 1)

horizontal_eight(lwd = 3, lty = 1)

s_vertical_eight(lwd = 3, lty = 1)

s_horizontal_eight(lwd = 3, lty = 1)

Value

Return the coordinates for drawing a vertical eight-shaped figure

Return the coordinates for drawing an horizontal eight-shaped figure

Return the coordinates for drawing a single vertical eight-shaped figure to be used in shape()

Return the coordinates for drawing a single horizontal eight-shaped figure to be used in shape()

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

  • horizontal_eight(): Coordinates of an horizontal eight

    Define the coordinates for drawing an horizontal eight-shaped figure

  • s_vertical_eight(): Coordinates of a single vertical eight

    Define the coordinates for drawing a single vertical eight-shaped figure, to be used in shape()

  • s_horizontal_eight(): Coordinates of a single horizontal eight

    Define the coordinates for drawing a single vertical eight-shaped figure, to be used in shape()

Examples

Run this code
# default coordinates of the vertical eight-shaped figure
vertical_eight()
# change the line type
vertical_eight(lty = 2)
# default coordinates of the horizontal eight-shaped figure
horizontal_eight()
# change the line type
horizontal_eight(lty = 2)
# default coordinates of the single vertical eight-shaped figure
s_vertical_eight()
# change the line type
s_vertical_eight(lty = 2)
# default coordinates of a single horizontal eight-shaped figure
s_horizontal_eight()
# change the line type
s_horizontal_eight(lty = 2)

Run the code above in your browser using DataLab