Interpolates the sides of a rectangle.

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

Arguments

colour

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

size

Line/border size in mm; text size in pts.

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.

color

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

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()
#> List of 8 #> $ fill : NULL #> $ colour : NULL #> $ size : NULL #> $ linetype : NULL #> $ inherit.blank: logi FALSE #> $ fun :function (...) #> $ n : num 50 #> $ sides : Named logi [1:4] TRUE TRUE TRUE TRUE #> ..- attr(*, "names")= chr [1:4] "top" "left" "bottom" "right" #> - attr(*, "class")= chr [1:3] "element_rect_seq" "element_rect" "element"