Skip to contents

Draws one opaque, wider copy of a stroked or point mark beneath the crisp original in a contrasting colour, so the mark stays legible over a busy or dark backdrop (the "sticker" look). Applies to the same marks as glow().

Usage

outline(size = 1, color = "white", alpha = 1)

Arguments

size

Halo width per side, in millimetres.

color

Outline colour.

alpha

Outline opacity.

Value

An OutlineSpec object for a mark's effects list.

See also

Examples

vplot(mtcars) |>
  mark_point(x = wt, y = mpg, color = factor(cyl), size = 3,
    effects = list(outline()))