heart_curve: Draw a heart curve

Description Usage Arguments Author(s) Examples

View source: R/heart_curve.R

Description

Calculate the coordinates of a heart shape and draw it with a polygon.

Usage

1
heart_curve(n = 101, ...)

Arguments

n

the number of points to use when calculating the coordinates of the heart shape

...

other arguments to be passed to polygon, e.g. the color of the polygon (usually red)

Author(s)

Yihui Xie <https://yihui.org>

Examples

1
2
3
heart_curve()
heart_curve(col = "red")
heart_curve(col = "pink", border = "red")

yihui/MSG documentation built on Aug. 16, 2021, 12:13 p.m.