theme_scg
provides a custom ggplot2 theme tailored for scg plots. This theme
modifies various aspects of ggplot2 plots, including fonts, colors, panel spacing,
and legend formatting, to create a visually consistent and appealing style.
Details
The function customizes various components of a ggplot2 plot, including the plot title, axis titles and texts, panel background, grid lines, legend, and more. The theme aims to provide a clean, professional look suitable for scg-style visualizations. Users can specify the base font size and family to further customize the appearance.
Examples
if (FALSE) { # \dontrun{
ggplot(data = df, aes(x = x, y = y, fill = reorder(group, y))) +
geom_bar(stat = "identity", width = 0.8, position = position_dodge(width = 0.9), alpha = 1) +
scale_fill_manual(values = colour_pal("catExtended")) +
labs(title = "Title", fill = y, x = x, y = y) +
theme_scg()
} # }