Skip to contents

Plot styling helpers for bridgr graphics, based on the visual defaults used in the reviser package.

Usage

theme_bridgr(
  base_size = 12,
  legend_position = "bottom",
  legend_direction = "horizontal",
  ...
)

colors_bridgr()

scale_color_bridgr(...)

scale_fill_bridgr(...)

Arguments

base_size

Base text size for the plot theme.

legend_position

Legend position passed to ggplot2::theme().

legend_direction

Legend direction passed to ggplot2::theme().

...

Additional arguments. In theme_bridgr(), legend.position and legend.direction are accepted for backward compatibility. In the scale helpers, ... is forwarded to the ggplot2 scale constructors.

Value

A ggplot2 theme, color palette, or scale.