These functions provide a custom visualization theme and color scales for
use with ggplot2, inspired by the tsbox
package.
Usage
theme_reviser(
base_size = 12,
legend.position = "bottom",
legend.direction = "horizontal"
)
colors_reviser()
scale_color_reviser(...)
scale_fill_reviser(...)
Details
theme_reviser
: Defines a minimal theme with custom adjustments for axis titles, plot titles, subtitles, captions, and legend positioning.colors_reviser
: Provides a predefined set of colors, including a soft black, a palette suitable for colorblind readers, and additional colors for extended use.scale_color_reviser
: A ggplot2 color scale that uses the customcolors_reviser
palette.scale_fill_reviser
: A ggplot2 fill scale that uses the customcolors_reviser
palette.