Learn R Programming

thisplot (version 0.3.1)

get_legend: Extract legend from a plot

Description

Extract the legend grob from a plot object.

Usage

get_legend(plot)

Value

The legend grob.

Arguments

plot

A plot object.