Learn R Programming

matRiks (version 0.1.3)

miley: Define the coordinates of a miley

Description

Define the coordinates for drawing the petals composing a miley

Usage

miley(lwd = 3, lty = 1)

s_miley(lwd = 3, lty = 1)

Value

Return the coordinates for drawing the petals composing a miley

Return the coordinates for drawing the petals composing a single miley

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

  • s_miley(): Define the coordinates a single miley

    Define the coordinates for drawing the petals composing a single miley, to be used in shape()

Examples

Run this code
# return the default coordinates for drawing a right petal
miley()
# change the line type of the right petal
miley(lty = 3)
# return the default coordinates for drawing the petals composing a single miley
s_miley()
# change the line type of the single miley
s_miley(lty = 3)

Run the code above in your browser using DataLab