frameIt: Draw a frame around a plot

View source: R/frameIt.R

frameItR Documentation

Draw a frame around a plot

Description

Draw a frame around the plot region as an ensemble of small rectangles whose colors can be specified.

Usage

frameIt(
  nbc = 10,
  cex.x = 1,
  cex.y = cex.x,
  col = c("grey45", "grey85"),
  border = NA
)

Arguments

nbc

number of rectangles to be drawn for each axis.

cex.x

control the dimension

cex.y

The radii of the circles.

col

color of the rectangles drawn.

border

color of the borders if the rectangles drawn.

Details

The number of rectangles could be different from nbc as pretty is called to properly locate them. The col argument determines the succession of colors to be applied to each axis.

Examples

# Example 1:
plot0()
frameIt()

# Example 2:
plot0()
frameIt(cex.x = 1.5, col = c(2, 3), border = 1)


inSileco/graphicsutils documentation built on Sept. 12, 2022, 11:13 p.m.