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.positionandlegend.directionare accepted for backward compatibility. In the scale helpers,...is forwarded to the ggplot2 scale constructors.
Examples
ggplot2::ggplot(mtcars, ggplot2::aes(wt, mpg, color = factor(cyl))) +
ggplot2::geom_point() +
theme_bridgr()
colors_bridgr()[1:3]
#> [1] "#4D4D4D" "#0072B2" "#D55E00"
