theme_vlkr {volker} | R Documentation |
Define a default theme for volker plots
Description
Set ggplot colors, sizes and layout parameters.
Usage
theme_vlkr(
base_size = 11,
base_color = "black",
base_fill = VLKR_FILLDISCRETE,
base_gradient = VLKR_FILLGRADIENT
)
Arguments
base_size |
Base font size. |
base_color |
Base font color. |
base_fill |
A list of fill color sets or at least one fill color set. Example:
|
base_gradient |
A color vector used for creating gradient fill colors, e.g. in stacked bar plots. |
Details
Value
A theme function.
Examples
library(volker)
library(ggplot2)
data <- volker::chatgpt
theme_set(theme_vlkr(base_size=15, base_fill = list("red")))
plot_counts(data, sd_gender)
[Package volker version 2.0.1 Index]