Learn R Programming

RGraphics (version 3.0-2)

face: Draw a face

Description

Draws a face, consisting of a rectangle for the border, circles for eyes, and a line for the mouth.

Usage

faceA(x, y, width, height)
faceB(x, y, width, height)
faceC(x, y, width, height)
faceD(x, y, width, height)

Arguments

x, y, width, height

Numeric values or unit objects specifying the location and size of the face.

Details

The functions faceA and faceB are graphics functions to be used for their side effect of producing graphical output. The functions faceC and faceD return a grob representing a face (and produce no output).