Skip to contents

Draw rough, brush-rendered bars in ggplot2

Usage

geom_mypaint_bar(
  mapping = NULL,
  data = NULL,
  stat = "count",
  position = "stack",
  ...,
  just = 0.5,
  lineend = "butt",
  linejoin = "mitre",
  na.rm = FALSE,
  show.legend = NA,
  inherit.aes = TRUE,
  fill_pattern = NULL,
  brush = NULL,
  fill_brush = NULL,
  hand = NULL,
  stroke_hand = hand,
  fill_hand = hand,
  auto_solid_bg = NULL
)

Arguments

mapping, data, position, just, lineend, linejoin, na.rm, show.legend, inherit.aes

As for ggplot2::geom_col().

stat

The statistical transformation to use. Defaults to "count".

...

Other arguments passed to ggplot2::layer().

fill_pattern

Optional fill pattern created with hatch(), crosshatch(), zigzag(), or jumble().

brush

Stroke brush specification created with tweak_brush(), an installed mypaint brush name, .myb file path, JSON brush string, or NULL for solid borders.

fill_brush

Fill brush specification created with tweak_brush(), an installed mypaint brush name, .myb file path, JSON brush string, or NULL for solid fills.

hand

Optional hand-drawn geometry applied to both outline and hatch by default.

stroke_hand

Optional hand-drawn geometry for the outline.

fill_hand

Optional hand-drawn geometry for the hatch strokes.

auto_solid_bg

Reserved for future parity with device-level style controls.

Value

A ggplot layer.