element_rect_seq: Interpolated rectangle theme element.

View source: R/element_rect_seq.R

element_rect_seqR Documentation

Interpolated rectangle theme element.

Description

Interpolates the sides of a rectangle.

Usage

element_rect_seq(
  fill = NULL,
  colour = NULL,
  linewidth = NULL,
  linetype = NULL,
  color = NULL,
  inherit.blank = FALSE,
  fun = defer,
  n = 50,
  sides = "tblr"
)

Arguments

colour, color

Line/border colour. Color is an alias for colour.

linewidth

Line/border size in mm.

linetype

Line type. An integer (0:8), a name (blank, solid, dashed, dotted, dotdash, longdash, twodash), or a string with an even number (up to eight) of hexadecimal digits which give the lengths in consecutive positions in the string.

inherit.blank

Should this element inherit the existence of an element_blank among its parents? If TRUE the existence of a blank element among its parents will cause this element to be blank as well. If FALSE any blank parent element will be ignored when calculating final element state.

fun

A function to apply to the interpolated lines

n

An integer of length one indicating how many points to interpolate.

sides

A character of length one containing any of "t", "l", "b" and/or "r". If these letters are present, edges are drawn at the top (t), left (l), bottom (b) or right (r), respectively. Including all these letters will draw all rectangle edges (default), whereas including none of these letters will not draw edges.

x

A single number specifying size relative to parent element.

lineend

Line end Line end style (round, butt, square)

Value

A list of the class element_line_seq

Examples

element_rect_seq()

teunbrand/elementalist documentation built on Oct. 13, 2024, 11:11 a.m.