This function creates a custom `ggplot2` theme for consistent plot styling across graphics. It adjusts various elements of the plot including text, axes, legend, and background to provide a clean and professional appearance. The theme can be applied to any `ggplot2` plot to ensure uniform formatting.
Arguments
- base_size
A numeric value specifying the base font size for text elements. Default is 7.
- base_family
A character string specifying the base font family for text elements. Default is an empty string, which uses the default font.
Details
The `theme_pers` function modifies the following elements:
`line`: Line color, size, and style.
`rect`: Rectangle background and border.
`text`: Font family, size, and color for text elements.
`axis.text`: Size of axis text.
`axis.line`: Visibility of axis lines.
`axis.ticks`: Style and size of axis ticks.
`legend`: Customization for legend appearance and positioning.
`panel`: Background, border, and grid lines of the plot panel.
`strip`: Background and text styling for facet labels.
`plot`: Overall background, title size, and margin settings.