Learn R Programming

lcars (version 0.4.1)

lcars_rect: LCARS rectangle

Description

A simple wrapper around rect().

Usage

lcars_rect(xmin, xmax, ymin, ymax, color = "atomic-tangerine")

Value

draws a rectangle

Arguments

xmin

numeric, left x positions.

xmax

numeric, right x positions.

ymin

numeric, bottom y positions.

ymax

numeric, top y positions.

color

fill and border color. Can be any color given in hex format. Named colors must be LCARS colors. See lcarsdata for options.

Examples

Run this code
plot(0:1, 0:1)
lcars_rect(0.1, 0.9, 0.6, 0.9)

Run the code above in your browser using DataLab