Skip to contents

get_legend takes a ggplot object and returns the legend grob

Usage

get_legend(myggplot)

Arguments

myggplot

a ggplot object that contains a legend

Value

a legend grob

Author

Bart Huntley, bart.huntley@dbca.wa.gov.au

For more details see https://dbca-wa.github.io/rivRmon/index.html the rivRmon website

Examples

if (FALSE) { # \dontrun{
get_legend(myggplot)} # }