% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/legend_style.R
\name{ggplotGrob.gg_autofit_legend}
\alias{ggplotGrob.gg_autofit_legend}
\title{Convert auto-fit legend plot to gtable}
\usage{
\method{ggplotGrob}{gg_autofit_legend}(x)
}
\arguments{
\item{x}{A gg_autofit_legend object}
}
\value{
A gtable object (grob table) with auto-fitted and centered legend,
suitable for rendering with \code{grid::grid.draw()} or saving with
\code{ggplot2::ggsave()}.
}
\description{
Convert auto-fit legend plot to gtable
}
\keyword{internal}
