Learn R Programming

ggguides (version 1.1.4)

ggplotGrob.gg_autofit_legend: Convert auto-fit legend plot to gtable

Description

Convert auto-fit legend plot to gtable

Usage

# S3 method for gg_autofit_legend
ggplotGrob(x)

Value

A gtable object (grob table) with auto-fitted and centered legend, suitable for rendering with grid::grid.draw() or saving with ggplot2::ggsave().

Arguments

x

A gg_autofit_legend object