Overview
This vignette demonstrates how to use the text2map.theme
package to customize plot aesthetics, including color palettes and
fonts.
Palette Configuration
text2map.theme includes three pre-defined palette
options designed for both digital display and print. This setting
applies globally to all subsequent ggplot plots.
Font Configuration
The package bundles Open Sans and Lato fonts for offline use. To
enable these, set set_font = TRUE.
Minimal Combined Example
# Combine palette and font settings
# set_font = FALSE prevents issues in restricted build environments
text2map.theme::set_theme(
palette = "grayscale",
set_font = FALSE
)
# Create a plot
ggplot(iris, aes(Sepal.Length, Sepal.Width, color = Species)) +
geom_point(size = 3) +
labs(title = "Iris Sepal Dimensions", subtitle = "Using Grayscale Palette")
