element_polygon: Polygon theme elements

View source: R/element_polygon.R

element_polygonR Documentation

Polygon theme elements

Description

Constructor for polygon theme elements.

Usage

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

Arguments

fill

A colour specification for the fill.

colour

A colour specification for the borders or lines.

linewidth

A numeric for the width of lines in millimetres.

linetype

A integer or string specifying a line type.

linejoin

One of the following strings: "round", "mitre" or "bevel".

lineend

One of the following strings: "round", "mitre" or "bevel".

color

Alias for the colour argument.

inherit.blank

A logical of length 1: should this element inherit the existence of an element_blank among its parents? If TRUE, the existance of a blank element among its parents will cause this element to be blank as well. If FALSE, any blank parent will be ignored when calculating final element state.

Details

Themes in vanilla ggplot2 do not contain polygons.

Value

A list with the class element_polygon.

Examples

NULL

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