User guide for the 'egg' R package, providing functions to customize 'ggplot2' objects including custom geoms, themes, plot alignment, and fixed panel sizes.
This document provides detailed usage instructions for the 'egg' R package, which extends 'ggplot2' with functions for customizing plot layouts and aesthetics. It includes tools for aligning plot panels, setting fixed panel sizes, creating custom geoms, and applying theme presets for publication or presentation. The package supports advanced customization for data visualization in R.
The functions are designed for users familiar with 'ggplot2', offering high-level wrappers to simplify layout adjustments and visual enhancements. Examples are provided for each function, demonstrating how to use them with real data and plot objects.
Use the ggarrange function with arguments like nrow, ncol, widths, and heights to control layout.
Use the set_panel_size function with arguments width and height to fix panel dimensions.
Use the symmetric_range function with a range argument to enforce symmetric scaling.