Skip to contents

Draw polygon.

Usage

element_polygon(
  fill = NULL,
  colour = NULL,
  linewidth = NULL,
  linetype = NULL,
  alpha = NULL,
  lineend = NULL,
  linejoin = NULL,
  linemitre = NULL,
  color = NULL,
  inherit.blank = FALSE
)

Arguments

fill

Fill colour. fill_alpha() can be used to set the transparency of the fill.

colour, color

Line/border colour. Color is an alias for colour. alpha() can be used to set the transparency of the colour.

linewidth

Line size in mm.

linetype

Line type for lines. 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.

alpha

A transparency value between 0 (transparent) and 1 (opaque), parallel to fill.

lineend

Line end style, one of "round", "butt" or "square".

linejoin

Line join style, one of "round", "mitre" or "bevel".

linemitre

Line mitre limit (number greater than 1).

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.

Value

A element_polygon object

See also