elementRect

fun elementRect(fill: Any? = null, color: Any? = null, size: Number? = null, linetype: Any? = null, blank: Boolean = false): <Error class: unknown class>

Specifies how non-data components of the plot are drawn. This theme element draws borders and backgrounds.

Examples

Parameters

fill

Fill color. Accepts color core as string (HEX or rgb) or Color object.

color

Border color. Accepts color core as string (HEX or rgb) or Color object.

size

Border line width.

linetype

Type of the line. Accept codes or names (0 = "blank", 1 = "solid", 2 = "dashed", 3 = "dotted", 4 = "dotdash", 5 = "longdash", 6 = "twodash"), a hex string (up to 8 digits for dash-gap lengths), or a pattern offset to listOf(dash, gap, ...) / listOf(dash, gap, ...).

blank

Mark as a 'blank' element.